class AddressAlias(AliasBase): (source)
Implements interfaces: twisted.mail.interfaces.IAlias
Method | __init__ |
|
Method | __str__ |
Build a string representation of this AddressAlias instance. |
Method | createMessageReceiver |
Create a message receiver which delivers a message to the destination address. |
Method | resolve |
Map this alias to its ultimate destination. |
Instance Variable | alias |
The destination address. |
Inherited from AliasBase
:
Method | domain |
Return the domain associated with original address. |
Instance Variable | domains |
See __init__ . |
Instance Variable | original |
The original address being aliased. |
AddressAlias
instance.Returns | |
bytes | A string containing the destination address. |
Returns | |
IMessage provider | A message receiver. |
twisted.mail.alias.AliasBase.resolve
Parameters | |
aliasmap:dict mapping bytes to AliasBase | A mapping of username to alias or group of aliases. |
memo:None or dict of AliasBase | A record of the aliases already considered in the resolution process. If provided, memo is modified to include this alias. |
Returns | |
IMessage or None | A message receiver for the ultimate destination or None for an invalid destination. |