class documentation
class AliasBase: (source)
Known subclasses: twisted.mail.alias.AddressAlias
, twisted.mail.alias.AliasGroup
, twisted.mail.alias.FileAlias
, twisted.mail.alias.ProcessAlias
Constructor: AliasBase(domains, original)
The default base class for aliases.
Method | __init__ |
No summary |
Method | domain |
Return the domain associated with original address. |
Method | resolve |
Map this alias to its ultimate destination. |
Instance Variable | domains |
See __init__ . |
Instance Variable | original |
The original address being aliased. |
Return the domain associated with original address.
Returns | |
IDomain provider | The domain for the original address. |
overridden in
twisted.mail.alias.AddressAlias
, twisted.mail.alias.AliasGroup
Map this alias to its ultimate destination.
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. |