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) nothrow
GType _getGType() static nothrow
GType _gType() @property nothrow
ParserOptions self() nothrowReturns `this`, for use in `with` statements.
gmime.parser_options.ParserOptions clone() nothrowClones a #GMimeParserOptions. Returns: a newly allocated #GMimeParserOptions.
gmime.types.RfcComplianceMode getAddressComplianceMode() nothrowGets the compliance mode that should be used when parsing rfc822 addresses.
bool getAllowAddressesWithoutDomain() nothrowGets whether or not the rfc822 address parser should allow addresses without a domain.
string[] getFallbackCharsets() nothrowGets 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() nothrowGets the compliance mode that should be used when parsing Content-Type and Content-Disposition parameters.
gmime.types.RfcComplianceMode getRfc2047ComplianceMode() nothrowGets the compliance mode that should be used when parsing rfc2047 encoded words.
void setAddressComplianceMode(gmime.types.RfcComplianceMode mode) nothrowSets the compliance mode that should be used when parsing rfc822 addresses.
void setAllowAddressesWithoutDomain(bool allow) nothrowSets whether the rfc822 address parser should allow addresses without a domain.
void setFallbackCharsets(string[] charsets) nothrowSets the fallback charsets to try when decoding 8-bit headers.
void setParameterComplianceMode(gmime.types.RfcComplianceMode mode) nothrowSets the compliance mode that should be used when parsing Content-Type and Content-Disposition parameters.
void setRfc2047ComplianceMode(gmime.types.RfcComplianceMode mode) nothrowSets the compliance mode that should be used when parsing rfc2047 encoded words.
void setWarningCallback(gmime.types.ParserWarningFunc warningCb) nothrowRegisters the callback function being called if the parser detects any issues.
gmime.parser_options.ParserOptions getDefault() static nothrowGets 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.