ParserOptions Class

Parser options as used by IMimeParser as well as various Parse and TryParse methods in MimeKit.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public class ParserOptions
Inheritance
Object    ParserOptions

Remarks

ParserOptions allows you to change and/or override default parsing options used by methods such as Load(ParserOptions, Stream, CancellationToken) and others.

Constructors

ParserOptions Initialize a new instance of the ParserOptions class.

Properties

AddressParserComplianceMode Get or set the compliance mode that should be used when parsing rfc822 addresses.
AllowAddressesWithoutDomain Get or set whether the rfc822 address parser should allow addresses without a domain.
AllowUnquotedCommasInAddresses Get or set whether the rfc822 address parser should ignore unquoted commas in address names.
CharsetEncoding Get or set the charset encoding to use as a fallback for 8bit headers.
MaxAddressGroupDepth Get or set the maximum address group depth the parser should accept.
MaxHeaderLength Get or set the maximum length of a header that the parser should accept.
MaxMimeDepth Get or set the maximum MIME nesting depth the parser should accept.
ParameterComplianceMode Get or set the compliance mode that should be used when parsing Content-Type and Content-Disposition parameters.
RespectContentLength Get or set a value indicating whether the Content-Length value should be respected when parsing mbox streams.
Rfc2047ComplianceMode Get or set the compliance mode that should be used when decoding rfc2047 encoded words.

Methods

Clone Clone an instance of ParserOptions.
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone Creates a shallow copy of the current Object.
(Inherited from Object)
RegisterMimeType Register a MimeEntity subclass for the specified mime-type.
ToString Returns a string that represents the current object.
(Inherited from Object)

Fields

Default The default parser options.

See Also

Reference