Programming with Thunderbird
Mozilla Thunderbird is an open source, cross-platform email client developed by the Mozilla Foundation. It stores emails in its own file structure, managing message indices and subfolders through proprietary file formats. Thunderbird creates one .mbox file per email folder (Inbox, Sent, Trash, and so on) and keeps these files in the user profile directory, each holding all the messages of that folder in a concatenated form.
Aspose.Email can work with Thunderbird mail storage structures. The MboxStorageReader and MboxrdStorageReader classes read messages from such files, and the MboxrdStorageWriter class writes new ones.
The following articles describe how to work with MBOX files:
- Read Emails from MBOX in Python — read messages sequentially, retrieve their properties, extract them by identifier, configure the load options and the preferred text encoding, and count the messages in a file.
- Write Messages to Thunderbird MBOX Files — add new messages to an existing mail storage file.
- Search and Filter MBOX Emails in Python — filter messages with a query and retrieve them page by page.
- Convert MBOX to PST — transfer messages from an MBOX archive into an Outlook data file, optionally removing the digital signatures.
- Split MBOX Files — divide a large archive into smaller chunks.