Working with MBOX Files in C++
Contents
[
Hide
]
MBOX is the plain-text mailbox format used by Mozilla Thunderbird and many Unix mail tools: every folder is one file, and the messages inside it follow each other separated by From marker lines. Aspose.Email for C++ works with such files through the classes of the Aspose::Email::Storage::Mbox namespace, without Thunderbird being installed.
The classes you will meet in this section:
- MboxrdStorageReader - sequential reader for the mboxrd dialect used by Thunderbird; the base class MboxStorageReader adds enumeration, search, extraction by identifier and splitting.
- MboxrdStorageWriter - appends messages to a new or existing storage file.
- MboxMessageInfo - lightweight summary of a message (subject, sender, recipients, date, identifier).
- MboxLoadOptions and MboxSaveOptions - reader and writer settings.
- MailStorageConverter - one-call migration of an MBOX file into an Outlook PST.
Topics:
- Reading MBOX Files - open a storage, walk the messages one by one, read them in batches, count them and control the text encoding.
- Filtering and Extracting MBOX Messages - scan message summaries, pull a message by its identifier, search with
MailQueryBuilderand tune the load options. - Writing MBOX Files - append messages to a storage file.
- Converting MBOX to PST - move an archive into an Outlook data file.
- Splitting MBOX Files - cut a large archive into parts and stop the operation early.