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