class AliasGroup(AliasBase): (source)
Implements interfaces: twisted.mail.interfaces.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. |
Instance Variable | aliases |
The destination aliases. |
Instance Variable | processAliasFactory |
A factory for process aliases. |
Inherited from AliasBase
:
Method | domain |
Return the domain associated with original address. |
Instance Variable | domains |
See __init__ . |
Instance Variable | original |
The original address being aliased. |
AliasGroup
instance.Returns | |
bytes | A string containing the aliases in the group. |
Returns | |
MultiWrapper | A message receiver which passes a message on to message receivers for each alias in the group. |
twisted.mail.alias.AliasBase.resolve
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 | |
MultiWrapper | A message receiver which passes the message on to message receivers for the ultimate destination of each alias in the group. |