gmime.format_options
Module for [FormatOptions] class
class FormatOptions
Types 1
classFormatOptions : gobject.boxed.Boxed
Format options for serializing various GMime objects.
Methods
FormatOptions self()Returns `this`, for use in `with` statements.void addHiddenHeader(string header)Adds the given header to the list of headers that should be hidden.void clearHiddenHeaders()Clears the list of headers that should be hidden.gmime.format_options.FormatOptions clone()Clones a #GMimeFormatOptions. Returns: a newly allocated #GMimeFormatOptions.gmime.filter.Filter createNewlineFilter(bool ensureNewline)Creates a #GMimeFilter suitable for converting line-endings to the currently set new-line format.string getNewline()Gets a string representing the currently set new-line format. Returns: a new-line character sequence.gmime.types.NewLineFormat getNewlineFormat()Gets the new-line format to use when writing out messages and headers. Returns: the new-line format that is currently set.gmime.types.ParamEncodingMethod getParamEncodingMethod()Gets the parameter encoding method to use for #GMimeParam parameters that do not already have an encoding method specified. Returns: the encoding method that is currently set.bool isHiddenHeader(string header)Gets whether or not the specified header should be hidden.void removeHiddenHeader(string header)Removes the given header from the list of headers that should be hidden.void setNewlineFormat(gmime.types.NewLineFormat newline)Sets the new-line format that should be used when writing headers and messages.void setParamEncodingMethod(gmime.types.ParamEncodingMethod method)Sets the parameter encoding method to use when encoding parameters which do not have an encoding method specified.gmime.format_options.FormatOptions getDefault()Gets the default format options. Returns: the default format options.