GMime.FormatOptions¶
Fields¶
None
Methods¶
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class GMime.FormatOptions¶
Format options for serializing various GMime objects.
- classmethod get_default()¶
- Returns:
the default format options.
- Return type:
Gets the default format options.
- classmethod new()¶
- Returns:
a newly allocated set of
GMime.FormatOptionswith the default values.- Return type:
Creates a new set of
GMime.FormatOptions.
- Parameters:
header (
str) – a header name
Adds the given header to the list of headers that should be hidden.
Clears the list of headers that should be hidden.
- clone()¶
- Returns:
a newly allocated
GMime.FormatOptions.- Return type:
Clones a
GMime.FormatOptions.
- create_newline_filter(ensure_newline)¶
- Parameters:
ensure_newline (
bool) –Trueif the output must *always* end with a new line- Returns:
a
GMime.Filterto convert to the specified new-line format.- Return type:
Creates a
GMime.Filtersuitable for converting line-endings to the currently set new-line format.
- free()¶
Frees a set of
GMime.FormatOptions.
- get_newline()¶
- Returns:
a new-line character sequence.
- Return type:
Gets a string representing the currently set new-line format.
- get_newline_format()¶
- Returns:
the new-line format that is currently set.
- Return type:
Gets the new-line format to use when writing out messages and headers.
- get_param_encoding_method()¶
- Returns:
the encoding method that is currently set.
- Return type:
Gets the parameter encoding method to use for
GMime.Paramparameters that do not already have an encoding method specified.
- Parameters:
header (
str) – the name of a header- Returns:
- Return type:
Gets whether or not the specified header should be hidden.
- Parameters:
header (
str) – a header name
Removes the given header from the list of headers that should be hidden.
- set_newline_format(newline)¶
- Parameters:
newline (
GMime.NewLineFormat) – aGMime.NewLineFormat
Sets the new-line format that should be used when writing headers and messages.
- set_param_encoding_method(method)¶
- Parameters:
method (
GMime.ParamEncodingMethod) – aGMime.ParamEncodingMethod
Sets the parameter encoding method to use when encoding parameters which do not have an encoding method specified.
Note:
GMime.ParamEncodingMethod.DEFAULTis not allowed.