twisted.mail.alias.AliasGroup(AliasBase) class documentationtwisted.mail.alias
View Source
(View In Hierarchy)
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. |
ProcessAlias)
Return the number of aliases in the group.
| Returns | The number of aliases in the group. (type: int) | |
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) | |
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) | |