Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

EmailReaderOptions

OfficeIMO.Email

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

Immutable resource and preservation policy for EmailDocumentReader.

Inheritance

  • object
  • EmailReaderOptions

Usage

Explore 16 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.

Accepted by parameters 12

Constructors

public EmailReaderOptions(long maxInputBytes = 268435456, int maxHeaderBytes = 1048576, int maxHeaderCount = 10000, int maxPartCount = 10000, int maxMimeDepth = 64, long maxAttachmentBytes = 134217728, long maxTotalAttachmentBytes = 536870912, int maxNestedMessageDepth = 16, bool includeAttachmentContent = true, bool preserveRawSource = false, int maxCompoundDirectoryEntries = 65536, int maxMapiPropertyCount = 100000, long maxDecodedPropertyBytes = 536870912, int maxTnefAttributeCount = 100000, int maxAttachmentCount = 10000, bool includeEmbeddedMessages = true) #

Creates reader options.

Parameters

maxInputBytes long = 268435456 optional
maxHeaderBytes int = 1048576 optional
maxHeaderCount int = 10000 optional
maxPartCount int = 10000 optional
maxMimeDepth int = 64 optional
maxAttachmentBytes long = 134217728 optional
maxTotalAttachmentBytes long = 536870912 optional
maxNestedMessageDepth int = 16 optional
includeAttachmentContent bool = true optional
preserveRawSource bool = false optional
maxCompoundDirectoryEntries int = 65536 optional
maxMapiPropertyCount int = 100000 optional
maxDecodedPropertyBytes long = 536870912 optional
maxTnefAttributeCount int = 100000 optional
maxAttachmentCount int = 10000 optional
includeEmbeddedMessages bool = true optional

Properties

public static EmailReaderOptions Default { get; } #

Default bounded reader policy.

public long MaxInputBytes { get; } #

Maximum artifact size accepted by the reader.

public int MaxHeaderBytes { get; } #

Maximum bytes allowed in one MIME header section.

public int MaxHeaderCount { get; } #

Maximum number of header fields in one entity.

public int MaxPartCount { get; } #

Maximum MIME entity count.

public int MaxMimeDepth { get; } #

Maximum nested MIME depth.

public long MaxAttachmentBytes { get; } #

Maximum decoded bytes for one attachment.

public long MaxTotalAttachmentBytes { get; } #

Maximum aggregate decoded attachment bytes.

public int MaxNestedMessageDepth { get; } #

Maximum embedded-message recursion depth.

public bool IncludeAttachmentContent { get; } #

Whether decoded attachment content is retained.

public bool IncludeEmbeddedMessages { get; } #

Whether embedded messages are parsed into nested documents. Attachment metadata remains available.

public bool PreserveRawSource { get; } #

Whether original artifact bytes are retained for explicit lossless writing.

public int MaxCompoundDirectoryEntries { get; } #

Maximum CFB directory entries accepted while reading MSG.

public int MaxMapiPropertyCount { get; } #

Maximum aggregate MAPI properties across an artifact and embedded messages.

public long MaxDecodedPropertyBytes { get; } #

Maximum aggregate decoded MSG/TNEF property bytes and MIME body/semantic-part bytes, checked before materialization.

public int MaxTnefAttributeCount { get; } #

Maximum number of TNEF attributes.

public int MaxAttachmentCount { get; } #

Maximum aggregate attachment count across the message and nested messages.