MimeComplianceOptionsContext Property

Get or set the context that the message is being used in.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public MimeComplianceContext Context { get; set; }

Property Value

MimeComplianceContext
The MIME compliance context.

Remarks

Gets or sets the context that the message is being used in.

A handful of MIME compliance violations are requirements of the channel that a message travels over rather than of the message itself, and are therefore rated lower in Storage than in Transport. Set this to Storage when parsing messages that were read from a local message store such as an mbox file or a Maildir.

This does not change which violations are reported, only the Severity that they are reported with.

See Also