twisted.mail.maildir.StringListMailbox
class documentationtwisted.mail.maildir
View Source
(View In Hierarchy)
Implements interfaces: twisted.mail.pop3.IMailbox
An in-memory mailbox.
Instance Variable | msgs | See __init__ . |
Method | __init__ | |
Method | listMessages | Retrieve the size of a message, or, if none is specified, the size of each message in the mailbox. |
Method | getMessage | Return an in-memory file-like object with the contents of a message. |
Method | getUidl | Get a unique identifier for a message. |
Method | deleteMessage | Mark a message for deletion. |
Method | undeleteMessages | Undelete any messages which have been marked for deletion. |
Method | sync | Discard the contents of any messages marked for deletion. |
Instance Variable | _delete | The indices of messages which have been marked for deletion. (type: set
of int ) |
Retrieve the size of a message, or, if none is specified, the size of each message in the mailbox.
Parameters | i | The 0-based index of a message. (type: int
or NoneType ) |
Returns | The number of octets in the specified message, or, if an index is not
specified, a list of the number of octets in each message in the mailbox.
Any value which corresponds to a deleted message is set to 0. (type: int
or list
of int ) | |
Raises | IndexError | When the index does not correspond to a message in the mailbox. |
Mark a message for deletion.
Parameters | i | The 0-based index of a message to delete. (type: int ) |
Raises | IndexError | When the index does not correspond to a message in the mailbox. |