Implements interfaces: twisted.mail.interfaces.IAlias

An alias which points to multiple destination aliases.

Instance Variable processAliasFactory A factory for process aliases. (type: no-argument callable which returns ProcessAlias)
Instance Variable aliases The destination aliases. (type: list of AliasBase which implements IAlias)
Method __init__ Create a group of aliases.
Method __len__ Return the number of aliases in the group.
Method __str__ Build a string representation of this AliasGroup instance.
Method createMessageReceiver Create a message receiver for each alias and return a message receiver which will pass on a message to each of those.
Method resolve Map each of the aliases in the group 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.
processAliasFactory =
A factory for process aliases. (type: no-argument callable which returns ProcessAlias)
aliases =
The destination aliases. (type: list of AliasBase which implements IAlias)
def __init__(self, items, *args): (source)

Create a group of aliases.

Parse a list of alias strings and, for each, create an appropriate alias object.

ParametersitemsAliases. (type: list of bytes)
argsArguments for AliasBase.__init__. (type: n-tuple of (0) dict mapping bytes to IDomain provider, (1) bytes)
def __len__(self): (source)

Return the number of aliases in the group.

ReturnsThe number of aliases in the group. (type: int)
def __str__(self): (source)

Build a string representation of this AliasGroup instance.

ReturnsA string containing the aliases in the group. (type: bytes)
def createMessageReceiver(self): (source)

Create a message receiver for each alias and return a message receiver which will pass on a message to each of those.

ReturnsA message receiver which passes a message on to message receivers for each alias in the group. (type: MultiWrapper)
def resolve(self, aliasmap, memo=None): (source)

Map each of the aliases in the group 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 which passes the message on to message receivers for the ultimate destination of each alias in the group. (type: MultiWrapper)
API Documentation for Twisted, generated by pydoctor at 2019-11-11 15:02:42.