ParserOptions

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

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this()

Creates a new set of #GMimeParserOptions.

Members

Functions

_cPtr
void* _cPtr(Flag!"Dup" dup)
clone
gmime.parser_options.ParserOptions clone()

Clones a #GMimeParserOptions.

getAddressComplianceMode
gmime.types.RfcComplianceMode getAddressComplianceMode()

Gets the compliance mode that should be used when parsing rfc822 addresses.

getAllowAddressesWithoutDomain
bool getAllowAddressesWithoutDomain()

Gets whether or not the rfc822 address parser should allow addresses without a domain.

getFallbackCharsets
string[] getFallbackCharsets()

Gets the fallback charsets to try when decoding 8-bit headers.

getParameterComplianceMode
gmime.types.RfcComplianceMode getParameterComplianceMode()

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

getRfc2047ComplianceMode
gmime.types.RfcComplianceMode getRfc2047ComplianceMode()

Gets the compliance mode that should be used when parsing rfc2047 encoded words.

self
ParserOptions self()

Returns this, for use in with statements.

setAddressComplianceMode
void setAddressComplianceMode(gmime.types.RfcComplianceMode mode)

Sets the compliance mode that should be used when parsing rfc822 addresses.

setAllowAddressesWithoutDomain
void setAllowAddressesWithoutDomain(bool allow)

Sets whether the rfc822 address parser should allow addresses without a domain.

setFallbackCharsets
void setFallbackCharsets(string[] charsets)

Sets the fallback charsets to try when decoding 8-bit headers.

setParameterComplianceMode
void setParameterComplianceMode(gmime.types.RfcComplianceMode mode)

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

setRfc2047ComplianceMode
void setRfc2047ComplianceMode(gmime.types.RfcComplianceMode mode)

Sets the compliance mode that should be used when parsing rfc2047 encoded words.

setWarningCallback
void setWarningCallback(gmime.types.ParserWarningFunc warningCb)

Registers the callback function being called if the parser detects any issues.

Properties

_gType
GType _gType [@property getter]

Static functions

_getGType
GType _getGType()
getDefault
gmime.parser_options.ParserOptions getDefault()

Gets the default parser options.

Inherited Members

From Boxed

_cInstancePtr
void* _cInstancePtr;

Pointer to the C boxed value

_getGType
GType _getGType()

Get the GType of this boxed type.

_gType
GType _gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

boxCopy
void* boxCopy()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.