Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

EmailWriterOptions

OfficeIMO.Email

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

Immutable policy for deterministic email serialization.

Inheritance

  • object
  • EmailWriterOptions

Usage

Explore 25 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 17

Constructors

EmailWriterOptions 3 overloads
public EmailWriterOptions(bool usePreservedRawSource = false, bool includeBccHeader = false, int base64LineLength = 76, int maxNestedMessageDepth = 16, long maxOutputBytes = 536870912) #

Creates writer options.

Parameters

usePreservedRawSource bool = false optional
includeBccHeader bool = false optional
base64LineLength int = 76 optional
maxNestedMessageDepth int = 16 optional
maxOutputBytes long = 536870912 optional
public EmailWriterOptions(EmailConversionLossPolicy conversionLossPolicy, bool usePreservedRawSource = false, bool includeBccHeader = false, int base64LineLength = 76, int maxNestedMessageDepth = 16, long maxOutputBytes = 536870912) #

Creates writer options with an explicit semantic-loss policy.

Parameters

conversionLossPolicy OfficeIMO.Email.EmailConversionLossPolicy required
usePreservedRawSource bool = false optional
includeBccHeader bool = false optional
base64LineLength int = 76 optional
maxNestedMessageDepth int = 16 optional
maxOutputBytes long = 536870912 optional
public EmailWriterOptions(OfficeSignatureMutationPolicy signatureMutationPolicy, EmailConversionLossPolicy conversionLossPolicy = Block, bool usePreservedRawSource = false, bool includeBccHeader = false, int base64LineLength = 76, int maxNestedMessageDepth = 16, long maxOutputBytes = 536870912) #

Creates writer options with an explicit policy for transport signatures invalidated by regeneration.

Parameters

signatureMutationPolicy OfficeIMO.OfficeSignatureMutationPolicy required
conversionLossPolicy OfficeIMO.Email.EmailConversionLossPolicy = Block optional
usePreservedRawSource bool = false optional
includeBccHeader bool = false optional
base64LineLength int = 76 optional
maxNestedMessageDepth int = 16 optional
maxOutputBytes long = 536870912 optional

Properties

public static EmailWriterOptions Default { get; } #

Default deterministic writer policy.

public bool UsePreservedRawSource { get; } #

Whether to reuse the preserved source for unchanged artifacts and eligible EML subject-only edits.

public bool IncludeBccHeader { get; } #

Whether Bcc recipients are written into the message header.

public int Base64LineLength { get; } #

Maximum encoded characters on one Base64 body line.

public int MaxNestedMessageDepth { get; } #

Maximum embedded-message write depth.

public long MaxOutputBytes { get; } #

Maximum serialized artifact size.

public EmailConversionLossPolicy ConversionLossPolicy { get; } #

Policy applied when the requested format cannot preserve known message semantics.

public OfficeSignatureMutationPolicy SignatureMutationPolicy { get; } #

Policy for DKIM, DomainKey, and ARC headers when serializing regenerated content. Defaults to blocking. This does not verify signatures or authorize rewriting a protected S/MIME wrapper.