Introduction
editMeziantou.Framework.Email reads and writes the files of email clients, written in C# without native dependencies:
| Format | Files | Read | Write | Pages |
|---|---|---|---|---|
| Outlook data files | .pst, .ost | Yes | Yes | Outlook data files |
| Email messages (Internet Message Format, MIME) | .eml | Yes | Yes | Email files |
| Signed and encrypted messages (S/MIME) | .eml, .p7m | Check, decrypt | No | S/MIME |
| Outlook items, Outlook templates | .msg, .oft | Yes | Yes | Outlook items |
| TNEF streams | winmail.dat | Yes | Yes | Winmail.dat |
| mbox files (mboxo, mboxrd, mboxcl, mboxcl2) | .mbox, Thunderbird folders | Yes | Yes | mbox files |
| Maildir folders (Maildir++) | cur, new, tmp | Yes | Yes | Maildir folders |
| Apple Mail messages | .emlx | Yes | Yes | Apple Mail |
| Thunderbird summaries, Mork databases | .msf, .mab | Yes | Yes | Thunderbird |
| Contacts (vCard 2.1, 3.0, 4.0) | .vcf | Yes | Yes | vCard |
| Calendars (iCalendar), with time zones and recurrences | .ics | Yes | Yes | iCalendar |
| Offline address books (version 4 Full Details) | udetails.oab | Yes | Yes | Offline address books |
Each format has its own objects, which give access to everything the format stores: the MAPI properties of an Outlook item, the headers and the MIME parts of a message. EmailMessage is the model they convert to and from, so that a message read in one format can be written in another: see Getting started.
EmailFormatDetector detects the format of a file from its content (see Getting started), and MailboxConverter converts a whole mailbox, with its folders, between Outlook data files, mbox files and Maildir folders, or exports its messages to .eml or .msg files: see Convert mailboxes.