11.23 Standard Module mailbox

 

This module defines a number of classes that allow easy and uniform access to mail messages in a (Unix) mailbox.

UnixMailbox (fp)
Access a classic Unix-style mailbox, where all messages are contained in a single file and separated by ``From name time'' lines. The file object fp points to the mailbox file.

MmdfMailbox (fp)
Access an MMDF-style mailbox, where all messages are contained in a single file and separated by lines consisting of 4 control-A characters. The file object fp points to the mailbox file.

MHMailbox (dirname)
Access an MH mailbox, a directory with each message in a separate file with a numeric name. The name of the mailbox directory is passed in dirname.



guido@python.org