t.m.m.StringListMailbox : class documentation

Part of twisted.mail.maildir View Source View In Hierarchy

Implements interfaces: twisted.mail.pop3.IMailbox

StringListMailbox is an in-memory mailbox.
Instance Variable msgs A list of str giving the contents of each message in the mailbox.
Method __init__ Undocumented
Method listMessages Return the length of the message at the given offset, or a list of all message lengths.
Method getMessage Return an in-memory file-like object for the message content at the given offset.
Method getUidl Return a hash of the contents of the message at the given offset.
Method deleteMessage Mark the given message for deletion.
Method undeleteMessages Reset deletion tracking, undeleting any messages which have been deleted since the last call to sync.
Method sync Discard the contents of any message marked for deletion and reset deletion tracking.
Instance Variable _delete A set of the indexes of messages which have been deleted since the last sync call.
msgs =
A list of str giving the contents of each message in the mailbox.
_delete =
A set of the indexes of messages which have been deleted since the last sync call.
def __init__(self, msgs): (source)
Undocumented
def listMessages(self, i=None): (source)
Return the length of the message at the given offset, or a list of all message lengths.
def getMessage(self, i): (source)
Return an in-memory file-like object for the message content at the given offset.
def getUidl(self, i): (source)
Return a hash of the contents of the message at the given offset.
def deleteMessage(self, i): (source)
Mark the given message for deletion.
def undeleteMessages(self): (source)
Reset deletion tracking, undeleting any messages which have been deleted since the last call to sync.
def sync(self): (source)
Discard the contents of any message marked for deletion and reset deletion tracking.
API Documentation for Twisted, generated by pydoctor at 2012-09-01 11:44:56.