# OfficeIMO.Email

Read and write email, Outlook items, mailbox stores, calendars, contacts, and address books without Outlook or third-party message parsers.

Email and Outlook data

Read and write email, Outlook items, mailbox stores, calendars, contacts, and address books without Outlook or third-party message parsers.

MIT licensed No Office required Cross-platform .NET

[Start with the guide](/docs/email/) [Browse API](/api/email/) [View package](https://www.nuget.org/packages/OfficeIMO.Email)

Install `dotnet add package OfficeIMO.Email` 

## Start with a working example

Find the input, generated output, and source for the document workflow you need.

[Browse document examples →](/showcase/)

## One managed API for email files and mailbox data

`OfficeIMO.Email` reads, writes, converts, searches, and verifies persisted email and Outlook data through managed .NET APIs. It does not require Outlook, COM, MailKit, MimeKit, MsgKit, or a native storage library.

```csharp
using OfficeIMO.Email;

EmailDocument message = EmailDocument.Load("message.eml");
Console.WriteLine(message.Subject);
message.Save("message.msg");
```

## Formats and workflows

| Artifact family | Read | Write or export | Useful for |
| --- | --- | --- | --- |
| EML and MIME | Yes | Yes | Standards-based messages, attachments, inline resources, and embedded messages |
| Outlook MSG and OFT | Yes | Yes | Messages, templates, appointments, contacts, tasks, journals, notes, and MAPI properties |
| TNEF and `winmail.dat` | Yes | Yes | Outlook transport payloads and typed item projections |
| mboxo and mboxrd | Yes | Yes | Portable mailbox archives and streaming message enumeration |
| PST and OST | Yes | New PST export | Folder-aware extraction, store conversion, and migration verification |
| Outlook for Mac OLM | Yes | New PST export | Archive discovery and cross-platform migration workflows |
| EMLX, Apple Mail, Maildir, and mailbox directories | Yes | Message or PST export | File-based archive ingestion and normalization |
| ICS, vCalendar, and vCard | Yes | Yes | Calendars, recurrence, reminders, contacts, and standards-based interchange |
| Outlook Offline Address Book | Yes | Search and validation results | Offline identity discovery and resolution |

## Convert a mailbox store to a new PST

```csharp
using OfficeIMO.Email.Store;

using EmailStoreSession source = EmailStoreSession.Open("mailbox.ost");

EmailStorePstConversionReport report = source.ExportToPst(
    "mailbox-export.pst",
    new EmailStorePstConversionOptions(
        continueOnItemError: true,
        includeAssociatedItems: true,
        includeOrphanedItems: true));

Console.WriteLine($"Converted: {report.ConvertedItems}");
Console.WriteLine($"Skipped: {report.SkippedItems}");
Console.WriteLine($"Verified: {report.Verification?.IsSuccessful}");
```

The source is not modified. The conversion report records converted and skipped items and can compare source and destination semantics.

## Safety and verification

- immutable parsing limits for source, header, attachment, MIME, compound-file, MAPI, and TNEF boundaries
- streaming and reopenable attachment sources for large messages and store-backed content
- conversion analysis that blocks known semantic loss by default
- versioned semantic fingerprints for migration verification and deduplication
- comparison reports that expose paths and lengths without copying private message values
- optional keyed, value-free PST verification manifests

## Guides

| Guide | Use it for |
| --- | --- |
| [Messages and conversion](/docs/email/messages-and-conversion/) | EML, MIME, MSG, OFT, TNEF, attachments, streaming, and loss analysis |
| [Mailbox stores](/docs/email/mailbox-stores/) | PST, OST, OLM, mbox, EMLX, Apple Mail, Maildir, extraction, and PST export |
| [Calendars and contacts](/docs/email/calendars-and-contacts/) | ICS, vCard, appointments, recurrence, tasks, and Outlook personal information |
| [Safety and verification](/docs/email/safety-and-verification/) | Bounded input, diagnostics, protected messages, comparison, and migration proof |
| [Email API reference](/api/email/) | Complete types, methods, parameters, and return models |

Same engine, other surfaces

## Use OfficeIMO another way

[**Studio** Edit supported PDF text, comments, forms and pages in one desktop window. *Explore Studio →*](/studio/) [**Browser** Convert and organize files in your tab. Files never leave your device. *Open a tool →*](/convert/) [**CLI** The same conversions in scripts, CI jobs and AI agents over MCP. *Install the CLI →*](/cli/) [**AI agents** An MCP server, plugin and skills for Claude, Codex, Copilot and Cursor. *Add to your agent →*](/agents/) [**PowerShell** PSWriteOffice brings 540 commands to PowerShell 5.1 and 7. *Start with PowerShell →*](/powershell/)

Next step

## Turn the package into a working document.

Follow a focused guide and inspect the API reference for this package.

[Open the guide](/docs/email/)[Explore libraries](/libraries/)

<!-- PowerForge markdown artifact sha256:33727F5A049564755738DA0602DFFA7C556C9A9521E324B10DE58BAFD3FC388D -->
