class documentation
class UncloseableMailbox: (source)
Implements interfaces: twisted.mail.interfaces.IMailboxIMAP
, twisted.mail.interfaces.IMailboxIMAPInfo
A mailbox that cannot be closed.
Method | __init__ |
Undocumented |
Method | add |
Add a message to the mailbox. |
Method | destroy |
Destroy this mailbox. |
Method | expunge |
Delete messages marked for deletion. |
Method | fetch |
Retrieve one or more messages. |
Method | get |
The flags |
Method | get |
Return the hierarchical delimiter. |
Method | get |
The number of messages. |
Method | get |
The recent messages. |
Method | get |
Return the UID of a message in the mailbox |
Method | get |
The next UID. |
Method | get |
The UID validity value. |
Method | get |
The recent messages. |
Method | is |
The recent messages. |
Method | request |
Return the mailbox's status. |
Method | store |
Set the flags of one or more messages. |
Class Variable | closed |
Undocumented |
Class Variable | flags |
Undocumented |
Class Variable | messages |
Undocumented |
Class Variable | m |
Undocumented |
Class Variable | rw |
Undocumented |
Instance Variable | add |
Add a mailbox change listener |
Instance Variable | listeners |
Undocumented |
Instance Variable | remove |
Remove a mailbox change listener |
Add a message to the mailbox.
Parameters | |
message | The message body. |
flags | The message flags. |
date | The message date. |
Returns | |
A Deferred that fires when the message has been added. |
Retrieve one or more messages.
Parameters | |
messages:MessageSet | The identifiers of messages to retrieve information about |
uid:bool | If true, the IDs specified in the query are UIDs; otherwise they are message sequence IDs. |
Returns | |
Any iterable of two-tuples of message sequence numbers and implementors of IMessageIMAP. | Undocumented |
Return the mailbox's status.
Parameters | |
names | The status items to include. |
Returns | |
A dict of status data. |
Set the flags of one or more messages.
Parameters | |
messages:A MessageSet object with the list of messages requested | The identifiers of the messages to set the flags of. |
flags:sequence of str | The flags to set, unset, or add. |
mode:-1, 0, or 1 | If mode is -1, these flags should be removed from the specified messages. If mode is 1, these flags should be added to the specified messages. If mode is 0, all existing flags should be cleared and these flags should be added. |
uid:bool | If true, the IDs specified in the query are UIDs; otherwise they are message sequence IDs. |
Returns | |
dict or Deferred | A dict mapping message sequence numbers to sequences of str representing the flags set on the message after this operation has been performed, or a Deferred whose callback will be invoked with such a dict . |
Raises | |
ReadOnlyMailbox | Raised if this mailbox is not open for read-write. |
Add a mailbox change listener
Parameters | |
listener | An object to add to the set of those which will be notified when the contents of this mailbox change. |
Remove a mailbox change listener
Parameters | |
listener | The object to remove from the set of listeners. |
Raises | |
ValueError | Raised when the given object is not a listener for this mailbox. |