API Reference

Class

EmailReaderOptions

Namespace OfficeIMO.Email
Assembly OfficeIMO.Email
Modifiers sealed

Immutable resource and preservation policy for EmailDocumentReader.

Inheritance

  • Object
  • EmailReaderOptions

Usage

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

Accepted by parameters

Constructors

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

Creates reader options.

Parameters

maxInputBytes System.Int64 = 268435456 optionalposition: 0
maxHeaderBytes System.Int32 = 1048576 optionalposition: 1
maxHeaderCount System.Int32 = 10000 optionalposition: 2
maxPartCount System.Int32 = 10000 optionalposition: 3
maxMimeDepth System.Int32 = 64 optionalposition: 4
maxAttachmentBytes System.Int64 = 134217728 optionalposition: 5
maxTotalAttachmentBytes System.Int64 = 536870912 optionalposition: 6
maxNestedMessageDepth System.Int32 = 16 optionalposition: 7
includeAttachmentContent System.Boolean = true optionalposition: 8
preserveRawSource System.Boolean = false optionalposition: 9
maxCompoundDirectoryEntries System.Int32 = 65536 optionalposition: 10
maxMapiPropertyCount System.Int32 = 100000 optionalposition: 11
maxDecodedPropertyBytes System.Int64 = 536870912 optionalposition: 12
maxTnefAttributeCount System.Int32 = 100000 optionalposition: 13

Properties

public static EmailReaderOptions Default { get; } #

Default bounded reader policy.

public Int64 MaxInputBytes { get; } #

Maximum artifact size accepted by the reader.

public Int32 MaxHeaderBytes { get; } #

Maximum bytes allowed in one MIME header section.

public Int32 MaxHeaderCount { get; } #

Maximum number of header fields in one entity.

public Int32 MaxPartCount { get; } #

Maximum MIME entity count.

public Int32 MaxMimeDepth { get; } #

Maximum nested MIME depth.

public Int64 MaxAttachmentBytes { get; } #

Maximum decoded bytes for one attachment.

public Int64 MaxTotalAttachmentBytes { get; } #

Maximum aggregate decoded attachment bytes.

public Int32 MaxNestedMessageDepth { get; } #

Maximum embedded-message recursion depth.

public Boolean IncludeAttachmentContent { get; } #

Whether decoded attachment content is retained.

public Boolean PreserveRawSource { get; } #

Whether original artifact bytes are retained for explicit lossless writing.

public Int32 MaxCompoundDirectoryEntries { get; } #

Maximum CFB directory entries accepted while reading MSG.

public Int32 MaxMapiPropertyCount { get; } #

Maximum aggregate MAPI properties across an artifact and embedded messages.

public Int64 MaxDecodedPropertyBytes { get; } #

Maximum aggregate bytes represented by decoded MSG property streams.

public Int32 MaxTnefAttributeCount { get; } #

Maximum number of TNEF attributes.