Package twisted :: Package mail :: Module maildir :: Class MaildirMailbox
[show private | hide private]
[frames | no frames]

Class MaildirMailbox

Mailbox --+
          |
         MaildirMailbox


Implement the POP3 mailbox semantics for a Maildir mailbox
Method Summary
  __init__(self, path)
Initialize with name of the Maildir mailbox
  deleteMessage(self, i)
Delete a message
  getMessage(self, i)
Return an open file-pointer to a message
  getUidl(self, i)
Return a unique identifier for a message
  listMessages(self)
Return a list of lengths of all files in new/ and cur/
  sync(self)
(inherited from Mailbox)

Method Details

__init__(self, path)
(Constructor)

Initialize with name of the Maildir mailbox

deleteMessage(self, i)

Delete a message

This only moves a message to the .Trash/ subfolder, so it can be undeleted by an administrator.
Overrides:
twisted.protocols.pop3.Mailbox.deleteMessage

getMessage(self, i)

Return an open file-pointer to a message
Overrides:
twisted.protocols.pop3.Mailbox.getMessage

getUidl(self, i)

Return a unique identifier for a message

This is done using the basename of the filename. It is globally unique because this is how Maildirs are designed.
Overrides:
twisted.protocols.pop3.Mailbox.getUidl

listMessages(self)

Return a list of lengths of all files in new/ and cur/
Overrides:
twisted.protocols.pop3.Mailbox.listMessages

Generated by Epydoc 1.2 prerelease on Wed Jan 29 06:28:17 2003 http://epydoc.sf.net