gmime.types
D types for gmime3 library
Types 32
Function callback for encoding and formatting a header value.
Parameters
header | a #GMimeHeader |
options | a #GMimeFormatOptions |
value | an unencoded header value |
charset | a charset |
Returns
The function signature for a callback to [gmime.message.Message.foreach_] and [gmime.multipart.Multipart.foreach_].
Parameters
parent | parent #GMimeObject |
part | a #GMimeObject |
Function signature for the callback to [gmime.parser.Parser.setHeaderRegex].
Parameters
parser | The #GMimeParser object. |
header | The header field matched. |
value | The header field value. |
offset | The header field offset. |
The function signature for a callback to [gmime.parser_options.ParserOptions.setWarningCallback].
Parameters
offset | parser offset where the issue has been detected, or -1 if it is unknown |
errcode | a #GMimeParserWarning |
item | a NUL-terminated string containing the value causing the issue, may be null |
A password request callback allowing a #GMimeCryptoContext to prompt the user for a password for a given key.
Parameters
ctx | the #GMimeCryptoContext making the request |
userId | the user_id of the password being requested |
prompt | a string containing some helpful context for the prompt |
reprompt | true if this password request is a reprompt due to a previously bad password response |
response | a stream for the application to write the password to (followed by a newline '\n' character) |
Returns
Throws
Variables 31
BINARY_AGE = 215GMime's binary age.
DISPOSITION_ATTACHMENT = "attachment"Standard attachment disposition.
DISPOSITION_INLINE = "inline"Standard inline disposition.
FILTER_ENRICHED_IS_RICHTEXT = 1A bit flag for [gmime.filter_enriched.FilterEnriched.new_] which signifies that the filter should expect Rich Text (aka RTF).
FILTER_HTML_BLOCKQUOTE_CITATION = 256Enclose citation text in blockquotes.
FILTER_HTML_CITE = 128Cites text by prepending "> " to each cited line.
FILTER_HTML_CONVERT_ADDRESSES = 32Wrap email addresses in "mailto:" href tags.
FILTER_HTML_CONVERT_NL = 2Convert new-lines ('\n') into <br> tags.
FILTER_HTML_CONVERT_SPACES = 4Preserve whitespace by converting spaces into their appropriate html entities.
FILTER_HTML_CONVERT_URLS = 8Wrap detected URLs in <a href=...> tags.
FILTER_HTML_ESCAPE_8BIT = 64Converts 8bit characters to '?'.
FILTER_HTML_MARK_CITATION = 16Change the colour of citation text.
FILTER_HTML_PRE = 1Wrap stream in <pre> and </pre> tags.
INTERFACE_AGE = 1GMime's interface age.
MAJOR_VERSION = 3GMime's major version.
MICRO_VERSION = 15GMime's micro version.
MINOR_VERSION = 2GMime's minor version.
SIGNATURE_STATUS_ERROR_MASK = - 8A convenience macro for masking out the non-error bit flags.
UUDECODE_STATE_BEGIN = 65536State for the [gmime.encoding.Encoding.uudecodeStep] function, denoting that the 'begin' line has been found.
UUDECODE_STATE_END = 131072State for the [gmime.encoding.Encoding.uudecodeStep] function, denoting that the end of the UU encoded block has been found.
UUDECODE_STATE_INIT = 0Initial state for the [gmime.encoding.Encoding.uudecodeStep] function.
UUDECODE_STATE_MASK = 0YDECODE_STATE_BEGIN = 4096State bit that denotes the yEnc filter has found the =ybegin line.
YDECODE_STATE_DECODE = 16384State bit that denotes yEnc filter has begun decoding the actual yencoded content and will continue to do so until an =yend line is found (or until there is nothing left to decode).
YDECODE_STATE_END = 32768State bit that denoates that [gmime.global.ydecodeStep] has finished decoding.
YDECODE_STATE_EOLN = 256State bit that denotes the yEnc filter has reached an end-of-line.
This state is for internal use only.
YDECODE_STATE_ESCAPE = 512State bit that denotes the yEnc filter has reached an escape sequence.
This state is for internal use only.
YDECODE_STATE_INIT = 0Initial state for the [gmime.global.ydecodeStep] function.
YDECODE_STATE_PART = 8192State bit that denotes the yEnc filter has found the =ypart line. (
Note
YENCODE_CRC_INIT = - 1Initial state for the crc and pcrc state variables.
YENCODE_STATE_INIT = 0Initial state for the [gmime.global.ydecodeStep] function.