utilsHeaderEncodeText

fnstring utilsHeaderEncodeText(gmime.format_options.FormatOptions options, string text, string charset = null)

Encodes a 'text' header according to the rules in rfc2047.

Parameters

optionsa #GMimeFormatOptions or null
texttext to encode
charsetthe charset to use or null to use the default

Returns

the encoded header. Useful for encoding

headers like "Subject".