Encryptomatic Encryptomatic.MailDex.Lib
A .NET standard library for reading pst / ost / OLM files. Simple reader interface. Reads messages, contacts, tasks and appointments including recurrence pattern.
Quick Start Notes
- Download and reference the Encryptomatic.MailDex.Lib.dll from your project.
- Provide a license
//Encryptomatic.MailDex.Lib license
LicenseManager.LicenseInfo = new LicenseInfo() { LicenseKey = "LICENSE_KEY" };
- Get an appropriate reader by using one of the ReaderFactory.GetReader(...) methods.
using (IReader reader = ReaderFactory.GetReader(pstFileLocation)) { ... }
- Use the reader instance
Folder inboxFolder = reader.GetFolder("/Top of Outlook data file/Inbox"); // Path may vary
IEnumerable<Message> inboxMessages = reader.ReadMessages(inboxFolder, false);
Since the path may vary, look at the example reading and recursively iterating through folders tree here.