twisted.mail.protocols.VirtualPOP3(pop3.POP3)
class documentationtwisted.mail.protocols
View Source
(View In Hierarchy)
A virtual hosting POP3 server.
Instance Variable | service | The email service that created this server. This must be set by the
service. (type: MailService ) |
Instance Variable | domainSpecifier | The character to use to split an email address into local-part and domain.
The default is '@'. (type: bytes ) |
Method | authenticateUserAPOP | Perform APOP authentication. |
Method | authenticateUserPASS | Perform authentication for a username/password login. |
Method | lookupDomain | Check whether a domain is among the virtual domains supported by the mail service. |
Inherited from TimeoutMixin (via POP3):
Method | callLater | Wrapper around reactor.callLater for test purpose. |
Method | resetTimeout | Reset the timeout count down. |
Method | setTimeout | Change the timeout period |
Method | timeoutConnection | Called when the connection times out. |
Method | __timedOut | Undocumented |
Inherited from TimeoutMixin (via POP3):
Method | callLater | Wrapper around reactor.callLater for test purpose. |
Method | resetTimeout | Reset the timeout count down. |
Method | setTimeout | Change the timeout period |
Method | timeoutConnection | Called when the connection times out. |
Method | __timedOut | Undocumented |
Inherited from TimeoutMixin (via POP3):
Method | callLater | Wrapper around reactor.callLater for test purpose. |
Method | resetTimeout | Reset the timeout count down. |
Method | setTimeout | Change the timeout period |
Method | timeoutConnection | Called when the connection times out. |
Method | __timedOut | Undocumented |
Inherited from TimeoutMixin (via POP3):
Method | callLater | Wrapper around reactor.callLater for test purpose. |
Method | resetTimeout | Reset the timeout count down. |
Method | setTimeout | Change the timeout period |
Method | timeoutConnection | Called when the connection times out. |
Method | __timedOut | Undocumented |
Inherited from TimeoutMixin (via POP3):
Method | callLater | Wrapper around reactor.callLater for test purpose. |
Method | resetTimeout | Reset the timeout count down. |
Method | setTimeout | Change the timeout period |
Method | timeoutConnection | Called when the connection times out. |
Method | __timedOut | Undocumented |
MailService
)
bytes
)
Perform APOP authentication.
Override the default lookup scheme to allow virtual domains.
Parameters | user | The name of the user attempting to log in. (type: bytes ) |
digest | The challenge response. (type: bytes ) | |
Returns | A deferred which fires when authentication is complete. If successful, it
returns an IMailbox interface,
a mailbox and a logout function. If authentication fails, the deferred
fails with an UnauthorizedLogin
error. (type: Deferred
which successfully results in 3-tuple
of (IMailbox , IMailbox provider,
no-argument callable)) |
Perform authentication for a username/password login.
Override the default lookup scheme to allow virtual domains.
Parameters | user | The name of the user attempting to log in. (type: bytes ) |
password | The password to authenticate with. (type: bytes ) | |
Returns | A deferred which fires when authentication is complete. If successful, it
returns an IMailbox interface,
a mailbox and a logout function. If authentication fails, the deferred
fails with an UnauthorizedLogin
error. (type: Deferred
which successfully results in 3-tuple
of (IMailbox , IMailbox provider,
no-argument callable)) |
Check whether a domain is among the virtual domains supported by the mail service.
Parameters | user | An email address. (type: bytes ) |
Returns | The local part and the domain part of the email address if the domain is
supported. (type: 2-tuple
of (bytes ,
bytes )) | |
Raises | POP3Error | When the domain is not supported by the mail service. |