class AliasGroup(AliasBase): (source)
Implements interfaces: twisted.mail.interfaces.IAlias
An alias which points to multiple destination aliases.
Instance Variable | processAliasFactory |
A factory for process aliases. |
Instance Variable | aliases |
The destination aliases. |
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. |
Method | domain |
Return the domain associated with original address. |
ProcessAlias
)
Build a string representation of this AliasGroup
instance.
Returns | A string containing the aliases in the group. (type: bytes ) |
Create a message receiver for each alias and return a message receiver which will pass on a message to each of those.
Returns | A message receiver which passes a message on to message receivers for each alias in the group. (type: MultiWrapper ) |
twisted.mail.alias.AliasBase.resolve
Map each of the aliases in the group 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 which passes the message on to message receivers for the ultimate destination of each alias in the group. (type: MultiWrapper ) |