# EmailStoreConverter

Dependency-free mailbox-store conversion entry points.

Class 

`OfficeIMO.Email.Store`

**Namespace**

`OfficeIMO.Email.Store`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[EmailStoreConverter.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStoreConverter.cs#L7)

**Modifiers**

static

Dependency-free mailbox-store conversion entry points.

## Inheritance

- object
- EmailStoreConverter

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Read and Convert PST, OST, and Mailbox Stores](/docs/email/mailbox-stores/) Guide
  
  Open PST, OST, OLM, mbox, EMLX, Apple Mail, and Maildir stores, export their messages, and convert a store to a new PST with verification.

Filter members 

Show inherited

## Methods

`public static EmailStoreMailboxConversionReport ConvertMailbox(string sourcePath, string destinationDirectory, EmailStoreMailboxFormat format, EmailStoreReaderOptions? readerOptions = null, EmailStoreMailboxConversionOptions? options = null, CancellationToken cancellationToken = default)` [#](#member-407de6dc4d88961fcc373e16)

[EmailStoreConverter.cs:66](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStoreConverter.cs#L66)

Converts a whole PST, OST, mbox, Maildir or other readable store into an mbox tree or a Maildir tree. Folder hierarchy, read/answered/flagged/deleted flags and dates are kept where the destination can hold them; everything else is reported through the loss policy. Messages are streamed one at a time.

Parameters

**sourcePath string required**

**destinationDirectory string required**

**format OfficeIMO.Email.Store.EmailStoreMailboxFormat required**

**readerOptions OfficeIMO.Email.Store.EmailStoreReaderOptions? = null optional**

**options OfficeIMO.Email.Store.EmailStoreMailboxConversionOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`EmailStoreMailboxConversionReport`

`public static EmailStorePstConversionReport ConvertToPst(string sourcePath, string destinationPath, EmailStoreReaderOptions? readerOptions = null, EmailStorePstConversionOptions? conversionOptions = null, CancellationToken cancellationToken = default)` [#](#method-converttopst-string-string-officeimo-email-store-emailstorereaderoptions-officeimo-email-store-emailstorepstconversionoptions-threading-cancellationtoken)

[EmailStoreConverter.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStoreConverter.cs#L31)

Opens a PST, OST, OLM, MBOX, EML, or mailbox directory and writes a new Unicode PST.

Parameters

**sourcePath string required**

**destinationPath string required**

**readerOptions OfficeIMO.Email.Store.EmailStoreReaderOptions? = null optional**

**conversionOptions OfficeIMO.Email.Store.EmailStorePstConversionOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`EmailStorePstConversionReport`

`public static void DeletePstConversionCheckpoint(string checkpointPath)` [#](#method-deletepstconversioncheckpoint-string)

[EmailStoreConverter.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStoreConverter.cs#L7)

Deletes one migration checkpoint, its writer-owned files, and its exact verification journal.

Parameters

**checkpointPath string required**

`public static EmailStorePstMergeReport MergeToPst(IEnumerable<EmailStoreMergeSource> sources, string destinationPath, EmailStorePstMergeOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-mergetopst-collections-generic-ienumerable-officeimo-email-store-emailstoremergesource-string-officeimo-email-store-emailstorepstmergeoptions-threading-cancellationtoken)

[EmailStoreConverter.cs:51](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStoreConverter.cs#L51)

Merges multiple read-only PST, OST, OLM, EMLX, or mailbox-directory sources into a new Unicode PST. Folder mapping, semantic deduplication, transient source retries, and diagnostics are handled by the reusable store engine; sources are never modified.

Parameters

**sources System.Collections.Generic.IEnumerable<OfficeIMO.Email.Store.EmailStoreMergeSource> required**

**destinationPath string required**

**options OfficeIMO.Email.Store.EmailStorePstMergeOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`EmailStorePstMergeReport`

`public static EmailStoreMailboxMigrationReport MigrateMailbox(string sourcePath, string destinationDirectory, EmailStoreMailboxMigrationOptions? options = null, IProgress<EmailStoreMailboxMigrationProgress>? progress = null, CancellationToken cancellationToken = default)` [#](#method-migratemailbox-string-string-officeimo-email-store-emailstoremailboxmigrationoptions-iprogress-officeimo-email-store-emailstoremailboxmigrationprogress-threading-cancellationtoken)

[EmailStoreConverter.MailboxMigration.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStoreConverter.MailboxMigration.cs#L17)

Exports an Outlook PST into a verified Thunderbird Local Folders bundle. Cancellation retains the last durable checkpoint for an explicit resume. The source and existing destination are left untouched.

Parameters

**sourcePath string required**

**destinationDirectory string required**

**options OfficeIMO.Email.Store.EmailStoreMailboxMigrationOptions? = null optional**

**progress System.IProgress<OfficeIMO.Email.Store.EmailStoreMailboxMigrationProgress>? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`EmailStoreMailboxMigrationReport`

`public static EmailStoreMailboxMigrationPlan PlanMailboxMigration(string sourcePath, string destinationDirectory, EmailStoreMailboxMigrationOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-planmailboxmigration-string-string-officeimo-email-store-emailstoremailboxmigrationoptions-threading-cancellationtoken)

[EmailStoreConverter.MailboxMigration.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStoreConverter.MailboxMigration.cs#L7)

Checks an Outlook PST and a proposed Thunderbird mailbox destination without writing files.

Parameters

**sourcePath string required**

**destinationDirectory string required**

**options OfficeIMO.Email.Store.EmailStoreMailboxMigrationOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`EmailStoreMailboxMigrationPlan`

`public static EmailStoreMailboxMigrationVerification VerifyMailboxMigration(string destinationDirectory, CancellationToken cancellationToken = default)` [#](#method-verifymailboxmigration-string-threading-cancellationtoken)

[EmailStoreConverter.MailboxMigration.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Writing/EmailStoreConverter.MailboxMigration.cs#L23)

Reopens a published Thunderbird bundle and checks each mailbox against its migration manifest.

Parameters

**destinationDirectory string required**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`EmailStoreMailboxMigrationVerification`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:BB9DA31F69899555E4DE081F2BC8BB9A13CC14A6F83926A343D06BA3E6A496EA -->
