Implements interfaces: twisted.mail.interfaces.IAlias

An alias which translates one email address into another.

Instance Variable alias The destination address. (type: 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. (type: Address)
Method domain Return the domain associated with original address.
alias =
The destination address. (type: Address)
def __init__(self, alias, *args): (source)
ParametersaliasThe destination address. (type: Address, User, bytes or object which can be converted into bytes)
argsArguments for AliasBase.__init__. (type: 2-tuple of (0) dict mapping bytes to IDomain provider, (1) bytes)
def __str__(self): (source)

Build a string representation of this AddressAlias instance.

ReturnsA string containing the destination address. (type: bytes)
def createMessageReceiver(self): (source)

Create a message receiver which delivers a message to the destination address.

ReturnsA message receiver. (type: IMessage provider)
def resolve(self, aliasmap, memo=None): (source)

Map this alias to its ultimate destination.

ParametersaliasmapA mapping of username to alias or group of aliases. (type: dict mapping bytes to AliasBase)
memoA 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)
ReturnsA message receiver for the ultimate destination or None for an invalid destination. (type: IMessage or None)
API Documentation for Twisted, generated by pydoctor at 2017-09-23 19:45:03.