eulcommon.binfile.outlookexpress – Outlook Express 4.5 for Mac¶
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).
-
class
eulcommon.binfile.outlookexpress.MacFolder(folder_path)¶ Wrapper object for an Outlook Express 4.5 for Mac folder, with a
MacIndexand an optionalMacMail.Parameters: folder_path – path to the Outlook Express 4.5 folder directory, which must contain at least an Indexfile (and probably aMailfile, for non-empty folders)-
count¶ Number of email messages in this folder
-
messages¶ A generator yielding an
email.message.Messagefor each message in this folder, based on message index information inMacIndexand content inMacMail. Does not include deleted messages.
-
raw_messages¶ A generator yielding a
MacMailMessagebinary object for each message in this folder, based on message index information inMacIndexand content inMacMail.
-
-
class
eulcommon.binfile.outlookexpress.MacIndex(fobj=None, mm=None, offset=0)¶ A
BinaryStructurefor the Index file of an Outlook Express 4.5 for Mac email folder.-
messages¶ A generator yielding the
MacIndexMessagestructures in this index file.
-
-
class
eulcommon.binfile.outlookexpress.MacIndexMessage(fobj=None, mm=None, offset=0)¶ Information about a single email message within the
MacIndex.
-
class
eulcommon.binfile.outlookexpress.MacMail(fobj=None, mm=None, offset=0)¶ A
BinaryStructurefor 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.-
get_message(offset, size)¶ Get an individual
MacMailMessagewithin a Mail data file, based on size and offset information from the correspondingMacIndexMessage.Parameters: - offset – offset within the Mail file where the desired
message begins, i.e.
MacMailMessage.offset - size – size of the message,
i.e.
MacMailMessage.size
- offset – offset within the Mail file where the desired
message begins, i.e.
-
-
class
eulcommon.binfile.outlookexpress.MacMailMessage(size, *args, **kwargs)¶ 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
MacMailMessageis stored in theMacIndexMessagebut 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 returndatacorrectly.-
as_email()¶ Return message data as a
email.message.Messageobject.
-
data¶ email content for this message
-
deleted¶ boolean flag indicating if this is a deleted message
-