MimeComplianceValidators Enumeration

The set of MIME compliance validators that a MimeReader may run.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
[FlagsAttribute]
public enum MimeComplianceValidators

Remarks

A validator performs a deeper inspection of a particular kind of content than the structural checks that the MimeReader always performs, such as checking that the content of a base64-encoded part is actually valid base64 or that an address header is syntactically valid.

These values are combined to form EnabledValidators, which allows individual validators to be switched off, for example if one of them proves to be too expensive for, or misbehaves on, the messages that a particular deployment sees.

Members

None 0 No validators.
Base64 1 The validator for content that uses the base64 Content-Transfer-Encoding.
QuotedPrintable 2 The validator for content that uses the quoted-printable Content-Transfer-Encoding.
UUEncode 4 The validator for content that uses the uuencode Content-Transfer-Encoding.
Address 8 The validator for the values of address headers such as From, To and Cc.
Parameters 16 The validator for malformed or repeated parameters, RFC 2047 encoded-words, malformed RFC 2231 encoded values, and missing continuation segments in Content-Type and Content-Disposition headers.
EncodedWords 32 The validator for RFC 2047 encoded-word syntax in address headers, Subject, Comments, Content-Description, and user-defined X- headers, including placement in address headers. This is independent of the address syntax and MIME parameter validators.
All 63 All validators.

See Also

Reference