Map binary email folder index and content files for Outlook Express 4.5 for Macintosh to Python objects.
What documentation is available suggests that Outlook Express stored email in either .mbx or .dbx format, but in Outlook Express 4.5 for Macintosh, each mail folder consists of a directory with an Index file and an optional Mail file (no Mail file is present when a mail folder is empty).
Wrapper object for an Outlook Express 4.5 for Mac folder, with a MacIndex and an optional MacMail.
Parameters: | folder_path – path to the Outlook Express 4.5 folder directory, which must contain at least an Index file (and probably a Mail file, for non-empty folders) |
---|
Number of email messages in this folder
A generator yielding an email.message.Message for each message in this folder, based on message index information in MacIndex and content in MacMail. Does not include deleted messages.
A generator yielding a MacMailMessage binary object for each message in this folder, based on message index information in MacIndex and content in MacMail.
Number of data chunks skipped between raw messages, based on offset and size. (Only set after iterating through messages.)
A BinaryStructure for the Index file of an Outlook Express 4.5 for Mac email folder.
Magic Number for Outlook Express 4.5 Mac Index file
length of the binary header at the beginning of the Index file
A generator yielding the MacIndexMessage structures in this index file.
number of email messages in this folder
Information about a single email message within the MacIndex.
size of a single message information block
the offset of the raw email data in the folder data file
the size of the raw email data in the folder data file
A BinaryStructure for the Mail file of an Outlook Express 4.5 for Mac email folder. The Mail file includes the actual contents of any email files in the folder, which must be accessed based on the message offset and size from the Index file.
Magic Number for a mail content file within an Outlook Express 4.5 for Macintosh folder
Get an individual MacMailMessage within a Mail data file, based on size and offset information from the corresponding MacIndexMessage.
Parameters: |
|
---|
A single email message within the Mail data file, as indexed by a MacIndexMessage. Consists of a variable length header or message summary followed by the content of the email (also variable length).
The size of a single MacMailMessage is stored in the MacIndexMessage but not (as far as we have determined) in the Mail data file, an individual message must be initialized with the a size parameter, so that the correct content can be returned.
Parameters: | size – size of this message (as determined by MacIndexMessage.size); required to return data correctly. |
---|
Header string indicating a deleted message
Header string indicating a normal message
Return message data as a email.message.Message object.
offset within this message block where the message summary header ends and message content begins
email content for this message
boolean flag indicating if this is a deleted message
Each mail message begins with a header, starting with either MSum (message summary, perhaps) or MDel for deleted messages.