gmime.types

D types for gmime3 library

Types 32

aliasHeaderRawValueFormatter = string delegate(gmime.header.Header header, gmime.format_options.FormatOptions options, string value, string charset)

Function callback for encoding and formatting a header value.

Parameters

headera #GMimeHeader
optionsa #GMimeFormatOptions
valuean unencoded header value
charseta charset

Returns

the encoded and formatted raw header value.

The function signature for a callback to [gmime.message.Message.foreach_] and [gmime.multipart.Multipart.foreach_].

Parameters

parentparent #GMimeObject
parta #GMimeObject
aliasParserHeaderRegexFunc = void delegate(gmime.parser.Parser parser, string header, string value, long offset)

Function signature for the callback to [gmime.parser.Parser.setHeaderRegex].

Parameters

parserThe #GMimeParser object.
headerThe header field matched.
valueThe header field value.
offsetThe header field offset.
aliasParserWarningFunc = void delegate(long offset, gmime.types.ParserWarning errcode, string item)

The function signature for a callback to [gmime.parser_options.ParserOptions.setWarningCallback].

Parameters

offsetparser offset where the issue has been detected, or -1 if it is unknown
errcodea #GMimeParserWarning
itema NUL-terminated string containing the value causing the issue, may be null
aliasPasswordRequestFunc = bool delegate(gmime.crypto_context.CryptoContext ctx, string userId, string prompt, bool reprompt, gmime.stream.Stream response, GError * * _err)

A password request callback allowing a #GMimeCryptoContext to prompt the user for a password for a given key.

Parameters

ctxthe #GMimeCryptoContext making the request
userIdthe user_id of the password being requested
prompta string containing some helpful context for the prompt
reprompttrue if this password request is a reprompt due to a previously bad password response
responsea stream for the application to write the password to (followed by a newline '\n' character)

Returns

true on success or false on error.

Throws

[ErrorWrap]

Variables 31

enumvarBINARY_AGE = 215

GMime's binary age.

enumvarDISPOSITION_ATTACHMENT = "attachment"

Standard attachment disposition.

enumvarDISPOSITION_INLINE = "inline"

Standard inline disposition.

enumvarFILTER_ENRICHED_IS_RICHTEXT = 1

A bit flag for [gmime.filter_enriched.FilterEnriched.new_] which signifies that the filter should expect Rich Text (aka RTF).

enumvarFILTER_HTML_BLOCKQUOTE_CITATION = 256

Enclose citation text in blockquotes.

enumvarFILTER_HTML_CITE = 128

Cites text by prepending "> " to each cited line.

enumvarFILTER_HTML_CONVERT_ADDRESSES = 32

Wrap email addresses in "mailto:" href tags.

enumvarFILTER_HTML_CONVERT_NL = 2

Convert new-lines ('\n') into <br> tags.

enumvarFILTER_HTML_CONVERT_SPACES = 4

Preserve whitespace by converting spaces into their appropriate html entities.

enumvarFILTER_HTML_CONVERT_URLS = 8

Wrap detected URLs in <a href=...> tags.

enumvarFILTER_HTML_ESCAPE_8BIT = 64

Converts 8bit characters to '?'.

enumvarFILTER_HTML_MARK_CITATION = 16

Change the colour of citation text.

enumvarFILTER_HTML_PRE = 1

Wrap stream in <pre> and </pre> tags.

enumvarINTERFACE_AGE = 1

GMime's interface age.

enumvarMAJOR_VERSION = 3

GMime's major version.

enumvarMICRO_VERSION = 15

GMime's micro version.

enumvarMINOR_VERSION = 2

GMime's minor version.

enumvarSIGNATURE_STATUS_ERROR_MASK = - 8

A convenience macro for masking out the non-error bit flags.

enumvarUUDECODE_STATE_BEGIN = 65536

State for the [gmime.encoding.Encoding.uudecodeStep] function, denoting that the 'begin' line has been found.

enumvarUUDECODE_STATE_END = 131072

State for the [gmime.encoding.Encoding.uudecodeStep] function, denoting that the end of the UU encoded block has been found.

enumvarUUDECODE_STATE_INIT = 0

Initial state for the [gmime.encoding.Encoding.uudecodeStep] function.

enumvarUUDECODE_STATE_MASK = 0
enumvarYDECODE_STATE_BEGIN = 4096

State bit that denotes the yEnc filter has found the =ybegin line.

enumvarYDECODE_STATE_DECODE = 16384

State 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).

enumvarYDECODE_STATE_END = 32768

State bit that denoates that [gmime.global.ydecodeStep] has finished decoding.

enumvarYDECODE_STATE_EOLN = 256

State bit that denotes the yEnc filter has reached an end-of-line.

This state is for internal use only.

enumvarYDECODE_STATE_ESCAPE = 512

State bit that denotes the yEnc filter has reached an escape sequence.

This state is for internal use only.

enumvarYDECODE_STATE_INIT = 0

Initial state for the [gmime.global.ydecodeStep] function.

enumvarYDECODE_STATE_PART = 8192

State bit that denotes the yEnc filter has found the =ypart line. (

Note

not all yencoded blocks have one)
enumvarYENCODE_CRC_INIT = - 1

Initial state for the crc and pcrc state variables.

enumvarYENCODE_STATE_INIT = 0

Initial state for the [gmime.global.ydecodeStep] function.