gmime.parser_options

Module for [ParserOptions] class

Types 1

A set of parser options used by #GMimeParser and various other parsing functions.

Methods
void * _cPtr(Flag!"Dup" dup = No.Dup)
GType _gType() @property
ParserOptions self()Returns `this`, for use in `with` statements.
gmime.parser_options.ParserOptions clone()Clones a #GMimeParserOptions. Returns: a newly allocated #GMimeParserOptions.
gmime.types.RfcComplianceMode getAddressComplianceMode()Gets the compliance mode that should be used when parsing rfc822 addresses.
bool getAllowAddressesWithoutDomain()Gets whether or not the rfc822 address parser should allow addresses without a domain.
string[] getFallbackCharsets()Gets the fallback charsets to try when decoding 8-bit headers. Returns: a null-terminated list of charsets to try when decoding 8-bit headers.
gmime.types.RfcComplianceMode getParameterComplianceMode()Gets the compliance mode that should be used when parsing Content-Type and Content-Disposition parameters.
gmime.types.RfcComplianceMode getRfc2047ComplianceMode()Gets the compliance mode that should be used when parsing rfc2047 encoded words.
void setAddressComplianceMode(gmime.types.RfcComplianceMode mode)Sets the compliance mode that should be used when parsing rfc822 addresses.
void setAllowAddressesWithoutDomain(bool allow)Sets whether the rfc822 address parser should allow addresses without a domain.
void setFallbackCharsets(string[] charsets)Sets the fallback charsets to try when decoding 8-bit headers.
void setParameterComplianceMode(gmime.types.RfcComplianceMode mode)Sets the compliance mode that should be used when parsing Content-Type and Content-Disposition parameters.
void setRfc2047ComplianceMode(gmime.types.RfcComplianceMode mode)Sets the compliance mode that should be used when parsing rfc2047 encoded words.
void setWarningCallback(gmime.types.ParserWarningFunc warningCb)Registers the callback function being called if the parser detects any issues.
gmime.parser_options.ParserOptions getDefault()Gets the default parser options. Returns: the default parser options.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new set of #GMimeParserOptions. Returns: a newly allocated set of #GMimeParserOptions with the default values.