Click or drag to resize
MimeKit

ParserOptionsParameterComplianceMode Property

Gets or sets the compliance mode that should be used when parsing Content-Type and Content-Disposition parameters.

Namespace:  MimeKit
Assembly:  MimeKit (in MimeKit.dll) Version: 3.0.0
Syntax
C#
public RfcComplianceMode ParameterComplianceMode { get; set; }

Property Value

Type: RfcComplianceMode
The RFC compliance mode.
Remarks

In general, you'll probably want this value to be Loose (the default) as it allows maximum interoperability with existing (broken) mail clients and other mail software such as sloppily written perl scripts (aka spambots).

Tip Tip
Even in Strict mode, the parameter parser is fairly liberal in what it accepts. Setting it to Loose just makes it try harder to deal with garbage input.
See Also