# EmailStoreSession

Keeps an email-store source open for bounded folder discovery, lightweight item enumeration, and explicit item reads. Sessions are not thread-safe.

Class 

`OfficeIMO.Email.Store`

**Namespace**

`OfficeIMO.Email.Store`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[EmailStoreSession.cs:71](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.cs#L71)

**Implements**

`IDisposable`

**Modifiers**

sealed

Keeps an email-store source open for bounded folder discovery, lightweight item enumeration, and explicit item reads. Sessions are not thread-safe.

## Inheritance

- object
- EmailStoreSession

## 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.
- [Read, Write, and Convert Email and Outlook Files](/docs/email/) Guide
  
  OfficeIMO.Email reads and writes EML, MSG, OFT, TNEF, PST, OST, OLM, mbox, calendar and contact files in .NET, with no Outlook installed.
- [Read PST and OST Files in .NET Without Outlook](/solutions/outlook-mailbox-migration/) Guide
  
  Read PST, OST, OLM, mbox, EMLX, Apple Mail, and Maildir in .NET without Outlook, then extract messages or write and verify a new PST.
- [OfficeIMO.Email](/products/email/) Guide
  
  Read and write email, Outlook items, mailbox stores, calendars, contacts, and address books without Outlook or third-party message parsers.

## Usage

Explore 3 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 3

- Property [EmailDataOpenResult.Store](/api/email/officeimo-email-data-emaildataopenresult/#property-store)
- Method [EmailStoreSession.Open](/api/email/officeimo-email-store-emailstoresession/#method-open-string-officeimo-email-store-emailstorereaderoptions-threading-cancellationtoken)
- Method [EmailStoreSession.OpenSnapshot](/api/email/officeimo-email-store-emailstoresession/#method-opensnapshot-string-officeimo-email-store-emailstorereaderoptions-threading-cancellationtoken)

Filter members 

Show inherited

## Methods

`public EmailArchiveAnalysisReport AnalyzeArchive(EmailArchiveAnalysisOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-analyzearchive-officeimo-email-store-emailarchiveanalysisoptions-threading-cancellationtoken)

[EmailStoreSession.ArchiveAnalysis.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.ArchiveAnalysis.cs#L10)

Analyzes regular archive items without changing the source or requesting attachment payloads. Semantic matches are candidates only; use approved maintenance operations for any later rewrite.

Parameters

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

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

Returns

`EmailArchiveAnalysisReport`

`public EmailConversationGraph BuildConversationGraph(EmailConversationGraphOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-buildconversationgraph-officeimo-email-store-emailconversationgraphoptions-threading-cancellationtoken)

[EmailStoreSession.Conversations.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.Conversations.cs#L11)

Builds a bounded cross-folder conversation graph from Internet threading fields, Outlook conversation identities, and meeting/task lifecycle identifiers. Subject-only links remain explicitly heuristic.

Parameters

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

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

Returns

`EmailConversationGraph`

`public EmailStorePstCompactionReport CompactToPst(string destinationPath, EmailStorePstCompactionOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-compacttopst-string-officeimo-email-store-emailstorepstcompactionoptions-threading-cancellationtoken)

[EmailStoreSession.PstCompaction.cs:108](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.PstCompaction.cs#L108)

Rewrites the selected live PST data to a distinct destination, reopens it, compares every written item, and commits only after verification. This method never replaces the open source PST.

Parameters

**destinationPath string required**

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

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

Returns

`EmailStorePstCompactionReport`

`public EmailStoreMailboxConversionReport ConvertMailbox(string destinationDirectory, EmailStoreMailboxFormat format, EmailStoreMailboxConversionOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-convertmailbox-string-officeimo-email-store-emailstoremailboxformat-officeimo-email-store-emailstoremailboxconversionoptions-threading-cancellationtoken)

[EmailStoreSession.MailboxConversion.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.MailboxConversion.cs#L21)

Converts every folder of this store into an mbox tree or a Maildir tree. Messages stream one at a time through the existing mbox and Maildir writers into a staging directory next to the destination, which is moved into place only when the loss policy accepts the result. The source store is never modified.

Parameters

**destinationDirectory string required**

Directory to create. It must not exist yet, or must be empty.

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

Destination layout.

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

Bounds and loss policy.

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

Cancels the conversion and removes the staged output.

Returns

`EmailStoreMailboxConversionReport`

`public EmailStoreRecoveryReport DiscoverRecoverableItems(EmailStoreRecoveryOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-discoverrecoverableitems-officeimo-email-store-emailstorerecoveryoptions-threading-cancellationtoken)

[EmailStoreSession.Inspection.cs:88](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.Inspection.cs#L88)

Discovers indexed items absent from normal folder contents tables without modifying the source.

Parameters

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

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

Returns

`EmailStoreRecoveryReport`

`public void Dispose()` [#](#method-dispose)

[EmailStoreSession.cs:243](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.cs#L243)

Closes owned sources or restores the position of a caller-owned stream.

EnumerateItems 2 overloads

`public IEnumerable<EmailStoreItemReference> EnumerateItems(EmailStoreEnumerationOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-enumerateitems-officeimo-email-store-emailstoreenumerationoptions-threading-cancellationtoken)

Streams lightweight item references according to the requested folder and recovery scope.

Parameters

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

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

Returns

`IEnumerable<EmailStoreItemReference>`

`public IEnumerable<EmailStoreItemReference> EnumerateItems(EmailStoreFolderId folderId, bool includeDescendants = false, bool includeAssociatedItems = false, int maxItems = 2147483647, CancellationToken cancellationToken = default)` [#](#method-enumerateitems-officeimo-email-store-emailstorefolderid-boolean-boolean-int32-threading-cancellationtoken)

[EmailStoreSession.cs:120](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.cs#L120)

Streams lightweight references from one typed folder scope.

Parameters

**folderId OfficeIMO.Email.Store.EmailStoreFolderId required**

**includeDescendants bool = false optional**

**includeAssociatedItems bool = false optional**

**maxItems int = 2147483647 optional**

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

Returns

`IEnumerable<EmailStoreItemReference>`

`public EmailStoreAsyncEnumerable<EmailStoreItemReference> EnumerateItemsAsync(EmailStoreEnumerationOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-enumerateitemsasync-officeimo-email-store-emailstoreenumerationoptions-threading-cancellationtoken)

[EmailStoreSession.Async.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.Async.cs#L11)

Asynchronously streams lightweight references without adding an async-interface compatibility dependency. The returned concrete type supports C# await foreach on every package target.

Parameters

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

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

Returns

`EmailStoreAsyncEnumerable<EmailStoreItemReference>`

`public EmailStorePstSplitReport ExecutePstSplit(EmailStorePstSplitPlan plan, CancellationToken cancellationToken = default)` [#](#method-executepstsplit-officeimo-email-store-emailstorepstsplitplan-threading-cancellationtoken)

[EmailStoreSession.PstSplit.cs:120](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.PstSplit.cs#L120)

Executes a dry-run plan by staging every part, reopening and semantically verifying every written item, then committing the complete output set with rollback protection for replaced destinations.

Parameters

**plan OfficeIMO.Email.Store.EmailStorePstSplitPlan required**

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

Returns

`EmailStorePstSplitReport`

`public EmailStoreRecoveryExportReport ExportRecoverableItemsToDirectory(string destinationDirectory, EmailStoreRecoveryExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-exportrecoverableitemstodirectory-string-officeimo-email-store-emailstorerecoveryexportoptions-threading-cancellationtoken)

[EmailStoreSession.RecoveryExport.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.RecoveryExport.cs#L15)

Discovers source-index orphans, exports each readable item independently, and records original item/folder evidence in a manifest. An isolated corrupt item does not invalidate successful artifacts when continuation is enabled. The source store is never modified.

Parameters

**destinationDirectory string required**

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

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

Returns

`EmailStoreRecoveryExportReport`

`public EmailStoreExportReport ExportToDirectory(string destinationDirectory, EmailStoreExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-exporttodirectory-string-officeimo-email-store-emailstoreexportoptions-threading-cancellationtoken)

[EmailStoreSession.Export.cs:123](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.Export.cs#L123)

Exports selected items one at a time through OfficeIMO.Email writers and records preservation diagnostics. The source store is never modified.

Parameters

**destinationDirectory string required**

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

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

Returns

`EmailStoreExportReport`

`public EmailStoreMboxExportReport ExportToMbox(string destinationPath, EmailStoreMboxExportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-exporttombox-string-officeimo-email-store-emailstoremboxexportoptions-threading-cancellationtoken)

[EmailStoreSession.Export.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.Export.cs#L14)

Streams selected messages through the OfficeIMO.Email mbox writer into a same-directory temporary file, then commits the completed mailbox. The source store is never modified.

Parameters

**destinationPath string required**

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

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

Returns

`EmailStoreMboxExportReport`

`public EmailStoreExportReport ExportToNativeDirectory(string destinationDirectory, EmailStoreNativeDirectoryExportOptions options, CancellationToken cancellationToken = default)` [#](#method-exporttonativedirectory-string-officeimo-email-store-emailstorenativedirectoryexportoptions-threading-cancellationtoken)

[EmailStoreSession.Export.NativeDirectory.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.Export.NativeDirectory.cs#L10)

Exports selected items to a Maildir or EMLX directory tree without modifying the source.

Parameters

**destinationDirectory string required**

**options OfficeIMO.Email.Store.EmailStoreNativeDirectoryExportOptions required**

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

Returns

`EmailStoreExportReport`

`public EmailStorePstConversionReport ExportToPst(string destinationPath, EmailStorePstConversionOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-exporttopst-string-officeimo-email-store-emailstorepstconversionoptions-threading-cancellationtoken)

[EmailStoreSession.PstExport.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.PstExport.cs#L12)

Streams this open store into a newly created Unicode PST. The source is read-only and is never mutated.

Parameters

**destinationPath string required**

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

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

Returns

`EmailStorePstConversionReport`

`public string GetCatalogFingerprint(CancellationToken cancellationToken = default)` [#](#method-getcatalogfingerprint-threading-cancellationtoken)

[EmailStoreSession.SourceFingerprint.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.SourceFingerprint.cs#L9)

Computes a stable metadata fingerprint from the session's already bounded, link-safe source catalog. Message bodies and attachment payloads are not materialized.

Parameters

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

Returns

`string`

`public string GetDurableSourceFingerprint(CancellationToken cancellationToken = default)` [#](#method-getdurablesourcefingerprint-threading-cancellationtoken)

[EmailStoreSession.SourceFingerprint.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.SourceFingerprint.cs#L29)

Computes a SHA-256 fingerprint over the complete persisted source. This intentionally performs source I/O so a continuation created in another process cannot be accepted after same-length content was changed.

Parameters

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

Returns

`string`

`public EmailStoreReminderQueue GetReminders(EmailStoreReminderQueryOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-getreminders-officeimo-email-store-emailstorereminderqueryoptions-threading-cancellationtoken)

[EmailStoreSession.Reminders.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.Reminders.cs#L11)

Builds a bounded reminder queue from item properties, respecting Outlook's excluded-folder domain by default.

Parameters

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

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

Returns

`EmailStoreReminderQueue`

`public EmailStoreInspectionReport Inspect()` [#](#method-inspect)

[EmailStoreSession.Inspection.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.Inspection.cs#L6)

Returns the constant-memory catalog snapshot built while opening this session.

Returns

`EmailStoreInspectionReport`

Open 2 overloads

`public static EmailStoreSession Open(string path, EmailStoreReaderOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-open-string-officeimo-email-store-emailstorereaderoptions-threading-cancellationtoken)

[EmailStoreSession.cs:71](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.cs#L71)

Opens a file with random-access sharing suitable for large PST/OST sources.

Parameters

**path string required**

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

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

Returns

`EmailStoreSession`

`public static EmailStoreSession Open(Stream stream, string? sourceName = null, EmailStoreReaderOptions? options = null, bool leaveOpen = true, CancellationToken cancellationToken = default)` [#](#method-open-io-stream-string-officeimo-email-store-emailstorereaderoptions-boolean-threading-cancellationtoken)

[EmailStoreSession.cs:95](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.cs#L95)

Opens a readable, seekable caller stream. Its original position is restored when the session is disposed.

Parameters

**stream System.IO.Stream required**

**sourceName string? = null optional**

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

**leaveOpen bool = true optional**

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

Returns

`EmailStoreSession`

OpenSnapshot 2 overloads

`public static EmailStoreSession OpenSnapshot(string path, EmailStoreReaderOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-opensnapshot-string-officeimo-email-store-emailstorereaderoptions-threading-cancellationtoken)

[EmailStoreSession.Snapshot.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.Snapshot.cs#L19)

Copies one store file into session-owned temporary storage and hashes it while copying. Repeated durable queries reuse that complete-source hash. The copy is deleted on disposal. Directory stores use their existing catalog and content validation instead.

Parameters

**path string required**

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

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

Returns

`EmailStoreSession`

`public static EmailStoreSession OpenSnapshot(Stream stream, string? sourceName = null, EmailStoreReaderOptions? options = null, bool leaveOpen = true, CancellationToken cancellationToken = default)` [#](#method-opensnapshot-io-stream-string-officeimo-email-store-emailstorereaderoptions-boolean-threading-cancellationtoken)

[EmailStoreSession.Snapshot.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.Snapshot.cs#L33)

Copies a readable stream into private temporary storage. Seekable sources are copied from their beginning and restored; non-seekable sources are copied forward. The snapshot represents the bytes observed while copying; callers must keep the original source stable until this call returns.

Parameters

**stream System.IO.Stream required**

**sourceName string? = null optional**

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

**leaveOpen bool = true optional**

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

Returns

`EmailStoreSession`

`public EmailStoreMaintenancePlan PlanMaintenance(int maxItems = 100000, CancellationToken cancellationToken = default)` [#](#method-planmaintenance-int32-threading-cancellationtoken)

[EmailStoreSession.MaintenancePlanning.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.MaintenancePlanning.cs#L10)

Produces a read-only, source-bound maintenance plan. Execution remains an explicit second step through the existing recovery export, PST compaction, or PST split plan APIs and always targets distinct paths.

Parameters

**maxItems int = 100000 optional**

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

Returns

`EmailStoreMaintenancePlan`

`public EmailStorePstCompactionPlan PlanPstCompaction(string destinationPath, EmailStorePstCompactionOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-planpstcompaction-string-officeimo-email-store-emailstorepstcompactionoptions-threading-cancellationtoken)

[EmailStoreSession.PstCompaction.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.PstCompaction.cs#L10)

Scans lightweight summaries and produces a no-write capacity/selection plan for a distinct compacted PST.

Parameters

**destinationPath string required**

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

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

Returns

`EmailStorePstCompactionPlan`

`public EmailStorePstSplitPlan PlanPstSplit(string outputBasePath, EmailStorePstSplitOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-planpstsplit-string-officeimo-email-store-emailstorepstsplitoptions-threading-cancellationtoken)

[EmailStoreSession.PstSplit.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.PstSplit.cs#L13)

Builds a read-only query/size partition plan. No item payloads are read and no files are written.

Parameters

**outputBasePath string required**

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

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

Returns

`EmailStorePstSplitPlan`

`public EmailStoreReadResult ReadAll(CancellationToken cancellationToken = default)` [#](#method-readall-threading-cancellationtoken)

[EmailStoreSession.cs:189](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.cs#L189)

Materializes the configured store scope as a compatibility convenience. Attachment payloads are omitted when [EmailStoreReaderOptions.RetainAttachmentContent](/api/email/officeimo-email-store-emailstorereaderoptions/) is false; use selective session reads for deferred attachment streams.

Parameters

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

Returns

`EmailStoreReadResult`

`public EmailStoreAssociatedDataCatalog ReadAssociatedData(EmailStoreAssociatedDataOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-readassociateddata-officeimo-email-store-emailstoreassociateddataoptions-threading-cancellationtoken)

[EmailStoreSession.AssociatedData.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.AssociatedData.cs#L13)

Reads bounded folder-associated information and projects documented category, configuration, view, rule, search-folder, and folder-field envelopes. Message bodies, recipients, and attachments are not read.

Parameters

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

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

Returns

`EmailStoreAssociatedDataCatalog`

ReadItem 2 overloads

`public EmailStoreItem ReadItem(EmailStoreItemReference reference, CancellationToken cancellationToken = default)` [#](#method-readitem-officeimo-email-store-emailstoreitemreference-threading-cancellationtoken)

[EmailStoreSession.cs:134](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.cs#L134)

Reads and projects one explicitly selected item.

Parameters

**reference OfficeIMO.Email.Store.EmailStoreItemReference required**

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

Returns

`EmailStoreItem`

`public EmailStoreItem ReadItem(EmailStoreItemReference reference, EmailStoreItemReadOptions options, CancellationToken cancellationToken = default)` [#](#method-readitem-officeimo-email-store-emailstoreitemreference-officeimo-email-store-emailstoreitemreadoptions-threading-cancellationtoken)

[EmailStoreSession.cs:141](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.cs#L141)

Reads only the requested parts of one explicitly selected item when the backend supports it.

Parameters

**reference OfficeIMO.Email.Store.EmailStoreItemReference required**

**options OfficeIMO.Email.Store.EmailStoreItemReadOptions required**

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

Returns

`EmailStoreItem`

`public EmailStoreItemSummary ReadSummary(EmailStoreItemReference reference, CancellationToken cancellationToken = default)` [#](#method-readsummary-officeimo-email-store-emailstoreitemreference-threading-cancellationtoken)

[EmailStoreSession.cs:154](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.cs#L154)

Reads only the small set of source properties needed for browsing and search when the format supports it. A complete summary already carried by reference is returned without another source read. Partial PST/OST contents-table rows are enriched from the bounded message metadata properties.

Parameters

**reference OfficeIMO.Email.Store.EmailStoreItemReference required**

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

Returns

`EmailStoreItemSummary`

`public IEnumerable<EmailStoreSearchResult> Search(EmailStoreQuery query, CancellationToken cancellationToken = default)` [#](#method-search-officeimo-email-store-emailstorequery-threading-cancellationtoken)

Searches bounded lightweight summaries without materializing message bodies, recipients, or attachments.

Parameters

**query OfficeIMO.Email.Store.EmailStoreQuery required**

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

Returns

`IEnumerable<EmailStoreSearchResult>`

`public EmailStoreContentSearchReport SearchContent(EmailStoreContentQuery query, IProgress<EmailStoreContentSearchProgress>? progress = null, CancellationToken cancellationToken = default)` [#](#method-searchcontent-officeimo-email-store-emailstorecontentquery-iprogress-officeimo-email-store-emailstorecontentsearchprogress-threading-cancellationtoken)

[EmailStoreSession.ContentSearch.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.ContentSearch.cs#L13)

Searches selected semantic fields with explicit scan, decode, character, result, progress, and resume bounds.

Parameters

**query OfficeIMO.Email.Store.EmailStoreContentQuery required**

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

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

Returns

`EmailStoreContentSearchReport`

`public EmailStoreTablePage SearchPage(EmailStoreTableQuery query, CancellationToken cancellationToken = default)` [#](#method-searchpage-officeimo-email-store-emailstoretablequery-threading-cancellationtoken)

[EmailStoreSession.TableQuery.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.TableQuery.cs#L9)

Executes a bounded typed table query using lightweight summaries only. Complete item payloads are not read.

Parameters

**query OfficeIMO.Email.Store.EmailStoreTableQuery required**

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

Returns

`EmailStoreTablePage`

`public EmailStoreSearchReport SearchWithReport(EmailStoreQuery query, CancellationToken cancellationToken = default)` [#](#method-searchwithreport-officeimo-email-store-emailstorequery-threading-cancellationtoken)

[EmailStoreSession.SearchReport.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.SearchReport.cs#L23)

Searches lightweight summaries and reports scan/result limits. Use content search for durable resumable batches.

Parameters

**query OfficeIMO.Email.Store.EmailStoreQuery required**

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

Returns

`EmailStoreSearchReport`

`public EmailStorePstSplitReport SplitToPst(string outputBasePath, EmailStorePstSplitOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-splittopst-string-officeimo-email-store-emailstorepstsplitoptions-threading-cancellationtoken)

[EmailStoreSession.PstSplit.cs:157](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.PstSplit.cs#L157)

Plans and executes a verified split in one call.

Parameters

**outputBasePath string required**

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

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

Returns

`EmailStorePstSplitReport`

`public EmailStoreValidationReport Validate(EmailStoreValidationOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-validate-officeimo-email-store-emailstorevalidationoptions-threading-cancellationtoken)

[EmailStoreSession.Inspection.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.Inspection.cs#L13)

Validates a bounded store scope at structural, summary, or fully projected depth.

Parameters

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

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

Returns

`EmailStoreValidationReport`

## 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?`

## Properties

`public EmailStoreFormat Format { get; }` [#](#property-format)

[EmailStoreSession.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.cs#L27)

Detected store format.

`public string? DisplayName { get; }` [#](#property-displayname)

[EmailStoreSession.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.cs#L30)

Display name declared by the source when available.

`public long SourceLength { get; }` [#](#property-sourcelength)

[EmailStoreSession.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.cs#L33)

Validated source length.

`public IReadOnlyList<EmailStoreFolderInfo> Folders { get; }` [#](#property-folders)

[EmailStoreSession.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.cs#L37)

Lightweight folder catalog. PST/OST item payloads are not read to build it.

`public EmailStoreFolderCatalog FolderCatalog { get; }` [#](#property-foldercatalog)

[EmailStoreSession.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.cs#L42)

Indexed folder navigation for this session.

`public IReadOnlyList<EmailStoreDiagnostic> Diagnostics { get; }` [#](#property-diagnostics)

[EmailStoreSession.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.cs#L47)

Structured diagnostics emitted while opening or reading the session.

`public bool IsPstPasswordProtected { get; }` [#](#property-ispstpasswordprotected)

[EmailStoreSession.cs:56](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.cs#L56)

Whether a PST source declares password protection. PST password protection is a checksum-based access deterrent, not cryptographic content encryption, and OfficeIMO does not claim confidentiality for it.

`public bool IsSnapshot { get; }` [#](#property-issnapshot)

[EmailStoreSession.Snapshot.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Store/Reading/EmailStoreSession.Snapshot.cs#L10)

True when this session owns a private read-only copy of the source bytes.

<!-- PowerForge markdown artifact sha256:6145AA4CEA1AF0337A3FE9BAA833129149269E7080DB3FDF2C9E3680492D2BB1 -->
