Class EmlParserOptions

Namespace
Wolfgang.Extensions.Mail
Assembly
Wolfgang.Extensions.Mail.dll

Controls how EmlParser handles malformed constructs it encounters while parsing EML/MIME content.

public sealed class EmlParserOptions
Inheritance
EmlParserOptions
Inherited Members

Remarks

By default the parser is lenient: malformed addresses, undecodable transfer encodings, and malformed RFC 2047 encoded words are skipped (or kept verbatim) rather than throwing. Set Strict to reject such input instead, or use ParseWithDiagnostics(string, EmlParserOptions?) to see what a lenient parse dropped.

Properties

Strict

When true, the parser throws an EmlParseException on the first malformed construct instead of skipping it. When false (the default), malformed constructs are skipped and parsing continues.

public bool Strict { get; set; }

Property Value

bool