class documentation
class MyVirtualPOP3(mail.protocols.VirtualPOP3): (source)
A virtual-domain-supporting POP3 server.
Method | authenticate |
Authenticate against a user against a virtual domain. |
Class Variable | magic |
Undocumented |
Inherited from VirtualPOP3
:
Method | authenticate |
Perform authentication for a username/password login. |
Method | lookup |
Check whether a domain is among the virtual domains supported by the mail service. |
Instance Variable | domain |
The character to use to split an email address into local-part and domain. The default is '@'. |
Instance Variable | service |
The email service that created this server. This must be set by the service. |
Inherited from POP3
(via VirtualPOP3
):
Method | connection |
Clean up when the connection has been lost. |
Method | connection |
Send a greeting to the client after the connection has been made. |
Method | do_ |
Handle an APOP command. |
Method | do_ |
Handle an AUTH command. |
Method | do_ |
Handle a CAPA command. |
Method | do_ |
Handle a DELE command. |
Method | do_ |
Handle a LAST command. |
Method | do_ |
Handle a LIST command. |
Method | do_ |
Handle a NOOP command. |
Method | do_ |
Handle a PASS command. |
Method | do_ |
Handle a QUIT command. |
Method | do_ |
Handle a RETR command. |
Method | do_ |
Handle an RPOP command. |
Method | do_ |
Handle a RSET command. |
Method | do_ |
Handle a STAT command. |
Method | do_ |
Handle a TOP command. |
Method | do_ |
Handle a UIDL command. |
Method | do_ |
Handle a USER command. |
Method | fail |
Send a response indicating failure. |
Method | finished |
Send the termination sequence. |
Method | generate |
Generate an APOP challenge. |
Method | line |
Pass a received line to a state machine function. |
Method | list |
Return a list of server capabilities suitable for use in a CAPA response. |
Method | process |
Dispatch a command from the client for handling. |
Method | state_ |
Handle received lines for the AUTH state in which an authentication challenge response from the client is expected. |
Method | state_ |
Handle received lines for the COMMAND state in which commands from the client are expected. |
Method | stop |
Stop producing data. |
Method | success |
Send a response indicating success. |
Method | transform |
Transform a chunk of a message to POP3 message format. |
Constant | AUTH |
Undocumented |
Instance Variable | blocked |
A list of blocked commands. While a response to a command is being generated by the server, other commands are blocked. When no command is outstanding, blocked is set to none. Otherwise, it contains a list of information about blocked commands... |
Instance Variable | factory |
A server factory which provides an interface for querying capabilities of the server. |
Instance Variable | mbox |
The mailbox for the authenticated user. |
Instance Variable | portal |
A portal for authentication. |
Instance Variable | schedule |
A callable that arranges for an iterator to be cooperatively iterated over along with all other iterators which have been passed to it such that runtime is divided between all of them. It returns a deferred which fires when the iterator finishes. |
Instance Variable | state |
The state which indicates what type of messages are expected from the client. Valid states are 'COMMAND' and 'AUTH' |
Instance Variable | time |
The number of seconds to wait for a command from the client before disconnecting. |
Method | _cb |
Complete successful authentication. |
Method | _coiterate |
Direct the output of an iterator to the transport and arrange for iteration to take place. |
Method | _eb |
Handle an expected authentication failure. |
Method | _eb |
Handle an unexpected authentication failure. |
Method | _get |
Retrieve the size and contents of a message. |
Method | _long |
Stop timeouts and block further command processing while a long operation completes. |
Method | _send |
Send the contents of a message. |
Method | _unblock |
Process as many blocked commands as possible. |
Instance Variable | _auth |
Authorization credentials. |
Instance Variable | _highest |
The 1-based index of the highest message retrieved. |
Instance Variable | _on |
The function to be executed when the connection is lost. |
Instance Variable | _user |
The username sent with the USER command. |
Inherited from LineOnlyReceiver
(via VirtualPOP3
, POP3
):
Method | data |
Translates bytes into lines, and calls lineReceived. |
Method | line |
Called when the maximum line length has been reached. Override if it needs to be dealt with in some special way. |
Method | send |
Sends a line to the other end of the connection. |
Constant | MAX |
The maximum length of a line to allow (If a sent line is longer than this, the connection is dropped). Default is 16384. |
Class Variable | delimiter |
The line-ending delimiter to use. By default this is b'\r\n'. |
Instance Variable | _buffer |
Undocumented |
Inherited from Protocol
(via VirtualPOP3
, POP3
, LineOnlyReceiver
):
Method | log |
Return a prefix matching the class name, to identify log messages related to this protocol instance. |
Inherited from BaseProtocol
(via VirtualPOP3
, POP3
, LineOnlyReceiver
, Protocol
):
Method | make |
Make a connection to a transport and a server. |
Instance Variable | connected |
Undocumented |
Instance Variable | transport |
Undocumented |
Inherited from TimeoutMixin
(via VirtualPOP3
, POP3
, LineOnlyReceiver
, Protocol
, BaseProtocol
):
Method | call |
Wrapper around reactor.callLater for test purpose. |
Method | reset |
Reset the timeout count down. |
Method | set |
Change the timeout period |
Method | timeout |
Called when the connection times out. |
Method | __timed |
Undocumented |
Instance Variable | __timeout |
Undocumented |
Authenticate against a user against a virtual domain.
Parameters | |
user | The username. |
digest | The digested password. |
Returns | |
A three-tuple like the one returned by IRealm.requestAvatar . The mailbox will be for the user given by user. |