Module mailbox
[hide private]
[frames] | no frames]

Module mailbox

Read/write support for Maildir, mbox, MH, Babyl, and MMDF mailboxes.

Classes [hide private]
Mailbox
A group of messages in a particular place.
Maildir
A qmail-style Maildir mailbox.
_singlefileMailbox
A single-file mailbox.
_mboxMMDF
An mbox or MMDF mailbox.
mbox
A classic mbox mailbox.
MMDF
An MMDF mailbox.
MH
An MH mailbox.
Babyl
An Rmail-style Babyl mailbox.
Message
Message with mailbox-format-specific properties.
MaildirMessage
Message with Maildir-specific properties.
_mboxMMDFMessage
Message with mbox- or MMDF-specific properties.
mboxMessage
Message with mbox-specific properties.
MHMessage
Message with MH-specific properties.
BabylMessage
Message with Babyl-specific properties.
MMDFMessage
Message with MMDF-specific properties.
_ProxyFile
A read-only wrapper of a file.
_PartialFile
A read-only wrapper of part of a file.
_Mailbox
UnixMailbox
PortableUnixMailbox
MmdfMailbox
MHMailbox
BabylMailbox
Error
Raised for module-specific errors.
NoSuchMailboxError
The specified mailbox does not exist and won't be created.
NotEmptyError
The specified mailbox is not empty and deletion was requested.
ExternalClashError
Another process caused an action to fail.
FormatError
A file appears to have an invalid format.
Functions [hide private]
 
_lock_file(f, dotlock=True)
Lock file f using lockf and dot locking.
 
_unlock_file(f)
Unlock file f using lockf and dot locking.
 
_create_carefully(path)
Create a file if it doesn't exist and open for reading and writing.
 
_create_temporary(path)
Create a temp file based on path and open for reading and writing.
 
_sync_flush(f)
Ensure changes to file f are physically on disk.
 
_sync_close(f)
Close file f, ensuring all changes are physically on disk.

Imports: sys, os, time, calendar, socket, errno, copy, email, rfc822, StringIO, fcntl