Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

EmailAttachmentExtractionOptions

OfficeIMO.Email

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

Bounds attachment export without following linked attachment paths.

Inheritance

  • object
  • EmailAttachmentExtractionOptions

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.

Accepted by parameters 2

Constructors

EmailAttachmentExtractionOptions 2 overloads
public EmailAttachmentExtractionOptions(int maxAttachments = 1000, long maxAttachmentBytes = 67108864, long maxTotalBytes = 268435456, int maxDepth = 4, bool recurseEmbeddedMessages = false, bool includeInline = true, bool includeHidden = false) #

Creates an export policy. Embedded messages are exported as EML; nested attachments are optional.

Parameters

maxAttachments int = 1000 optional
maxAttachmentBytes long = 67108864 optional
maxTotalBytes long = 268435456 optional
maxDepth int = 4 optional
recurseEmbeddedMessages bool = false optional
includeInline bool = true optional
includeHidden bool = false optional
public EmailAttachmentExtractionOptions(IEnumerable<int>? selectedAttachmentIndexes, string? fileNamePrefix = null, int maxAttachments = 1000, long maxAttachmentBytes = 67108864, long maxTotalBytes = 268435456, int maxDepth = 4, bool recurseEmbeddedMessages = false, bool includeInline = true, bool includeHidden = false) #

Creates a bounded policy for selected top-level attachments, with an optional source-specific filename prefix.

Parameters

selectedAttachmentIndexes System.Collections.Generic.IEnumerable<int>? required
fileNamePrefix string? = null optional
maxAttachments int = 1000 optional
maxAttachmentBytes long = 67108864 optional
maxTotalBytes long = 268435456 optional
maxDepth int = 4 optional
recurseEmbeddedMessages bool = false optional
includeInline bool = true optional
includeHidden bool = false optional

Properties

public int MaxAttachments { get; } #

Maximum operation-wide attachment visits, including skipped entries and embedded-message serialization.

public long MaxAttachmentBytes { get; } #

Maximum decoded or serialized bytes for one exported attachment.

public long MaxTotalBytes { get; } #

Maximum bytes consumed across attachments, including failed attempts.

public int MaxDepth { get; } #

Maximum embedded-message nesting depth; direct attachments have depth zero.

public bool RecurseEmbeddedMessages { get; } #

Whether to visit attachments inside embedded messages as well as exporting their EML.

public bool IncludeInline { get; } #

Whether to export inline resources.

public bool IncludeHidden { get; } #

Whether to export attachments marked hidden.

public IReadOnlyList<int>? SelectedAttachmentIndexes { get; } #

Optional top-level zero-based indexes. Null selects all; an empty collection selects none.

public string? FileNamePrefix { get; } #

Optional portable prefix for saving several messages into one directory.