FormatOptions

Format options for serializing various GMime objects.

Constructors

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

Creates a new set of #GMimeFormatOptions.

Members

Functions

_cPtr
void* _cPtr(Flag!"Dup" dup)
addHiddenHeader
void addHiddenHeader(string header)

Adds the given header to the list of headers that should be hidden.

clearHiddenHeaders
void clearHiddenHeaders()

Clears the list of headers that should be hidden.

clone
gmime.format_options.FormatOptions clone()

Clones a #GMimeFormatOptions.

createNewlineFilter
gmime.filter.Filter createNewlineFilter(bool ensureNewline)

Creates a #GMimeFilter suitable for converting line-endings to the currently set new-line format.

getNewline
string getNewline()

Gets a string representing the currently set new-line format.

getNewlineFormat
gmime.types.NewLineFormat getNewlineFormat()

Gets the new-line format to use when writing out messages and headers.

getParamEncodingMethod
gmime.types.ParamEncodingMethod getParamEncodingMethod()

Gets the parameter encoding method to use for #GMimeParam parameters that do not already have an encoding method specified.

isHiddenHeader
bool isHiddenHeader(string header)

Gets whether or not the specified header should be hidden.

removeHiddenHeader
void removeHiddenHeader(string header)

Removes the given header from the list of headers that should be hidden.

self
FormatOptions self()

Returns this, for use in with statements.

setNewlineFormat
void setNewlineFormat(gmime.types.NewLineFormat newline)

Sets the new-line format that should be used when writing headers and messages.

setParamEncodingMethod
void setParamEncodingMethod(gmime.types.ParamEncodingMethod method)

Sets the parameter encoding method to use when encoding parameters which do not have an encoding method specified.

Properties

_gType
GType _gType [@property getter]

Static functions

_getGType
GType _getGType()
getDefault
gmime.format_options.FormatOptions getDefault()

Gets the default format 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.