class documentation
class AbstractMaildirDomain: (source)
Known subclasses: twisted.mail.maildir.MaildirDirdbmDomain
Constructor: AbstractMaildirDomain(service, root)
Implements interfaces: twisted.mail.interfaces.IAliasableDomain
An abstract maildir-backed domain.
Method | __init__ |
No summary |
Method | add |
Add a user to this domain. |
Method | exists |
Check whether a user exists in this domain or an alias of it. |
Method | get |
Return credentials checkers for this domain. |
Method | set |
Set the group of defined aliases for this domain. |
Method | start |
Create a maildir message for a user. |
Method | user |
Return the maildir directory for a user. |
Method | will |
Check whether this domain will relay. |
Instance Variable | alias |
A mapping of username to alias. |
Instance Variable | root |
See __init__ . |
overridden in
twisted.mail.maildir.MaildirDirdbmDomain
Parameters | |
service:MailService | An email service. |
root:bytes | The maildir root directory. |
Check whether a user exists in this domain or an alias of it.
Parameters | |
user:User | A user. |
memo:None or dict of AliasBase | A record of the addresses already considered while resolving aliases. The default value should be used by all external code. |
Returns | |
no-argument callable which returns IMessage provider. | A function which takes no arguments and returns a message receiver for the user. |
Raises | |
SMTPBadRcpt | When the given user does not exist in this domain or an alias of it. |
overridden in
twisted.mail.maildir.MaildirDirdbmDomain
Return credentials checkers for this domain.
Subclasses should override this method.
Returns | |
list of ICredentialsChecker provider | Credentials checkers for this domain. |
Create a maildir message for a user.
Parameters | |
user:bytes | A username. |
Returns | |
MaildirMessage | A message receiver for this user. |