Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

EmailMessage

OfficeIMO.Email

Namespace
OfficeIMO.Email
Assembly
OfficeIMO.Email
Source revision
3b680b1b6fb1 with working tree changes
Modifiers
sealed

A handle-free message view. Payload operations reopen its unchanged local source for their duration.

Inheritance

  • object
  • EmailMessage

Usage

Explore 2 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 2

Methods

public EmailWriteResult Save(string path, bool overwrite = false, CancellationToken cancellationToken = default, EmailWriterOptions? options = null) #

Exports a native email artifact with an atomic destination conflict policy.

Parameters

path string required
overwrite bool = false optional
cancellationToken System.Threading.CancellationToken = default optional
options OfficeIMO.Email.EmailWriterOptions? = null optional
public EmailAttachmentExtractionResult SaveAttachments(string directory, IEnumerable<int> indexes, CancellationToken cancellationToken = default, string? fileNamePrefix = null) #

Extracts selected top-level attachments through the bounded shared extractor.

Parameters

directory string required
indexes System.Collections.Generic.IEnumerable<int> required
cancellationToken System.Threading.CancellationToken = default optional
fileNamePrefix string? = null optional
public T? UseDocument<T>(Func<EmailDocument, T?> operation, CancellationToken cancellationToken = default) #

Runs an owner operation with a full document and releases its source immediately afterward.

Type Parameters

T

Parameters

operation System.Func<OfficeIMO.Email.EmailDocument, T?> required
cancellationToken System.Threading.CancellationToken = default optional

Returns

T?

Properties

public string Id { get; } #

Stable item identifier within the source.

public string SourcePath { get; } #

Absolute local source path.

public string? FolderPath { get; } #

Store folder path, or null for an individual file.

public string? Subject { get; } #

Message subject.

public EmailAddress? From { get; } #

Represented author.

public IReadOnlyList<EmailAddress> To { get; } #

Primary recipients.

public IReadOnlyList<EmailAddress> Cc { get; } #

Carbon-copy recipients.

public IReadOnlyList<EmailAddress> Bcc { get; } #

Blind-carbon-copy recipients.

public DateTimeOffset? Date { get; } #

Declared sent date.

public DateTimeOffset? ReceivedDate { get; } #

Received date when available.

public string? TextBody { get; } #

Plain-text body alternative, when present.

public string? HtmlBody { get; } #

Original HTML body alternative, when present. Use the HTML exporter for a safe projection.

public string? RtfBody { get; } #

RTF body alternative, when present.

public IReadOnlyList<EmailMessageAttachment> Attachments { get; } #

Attachment metadata; reading this collection does not retain payloads.

public EmailStoreItemContentAvailability? ContentAvailability { get; } #

Local-cache availability reported by the store reader; null for individual files.

public string ExportName { get; } #

Portable subject and source-identity filename stem for batch exports.