Introduction

edit

Meziantou.Framework.Email reads and writes the files of email clients, written in C# without native dependencies:

FormatFilesReadWritePages
Outlook data files.pst, .ostYesYesOutlook data files
Email messages (Internet Message Format, MIME).emlYesYesEmail files
Signed and encrypted messages (S/MIME).eml, .p7mCheck, decryptNoS/MIME
Outlook items, Outlook templates.msg, .oftYesYesOutlook items
TNEF streamswinmail.datYesYesWinmail.dat
mbox files (mboxo, mboxrd, mboxcl, mboxcl2).mbox, Thunderbird foldersYesYesmbox files
Maildir folders (Maildir++)cur, new, tmpYesYesMaildir folders
Apple Mail messages.emlxYesYesApple Mail
Thunderbird summaries, Mork databases.msf, .mabYesYesThunderbird
Contacts (vCard 2.1, 3.0, 4.0).vcfYesYesvCard
Calendars (iCalendar), with time zones and recurrences.icsYesYesiCalendar
Offline address books (version 4 Full Details)udetails.oabYesYesOffline 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.