| Top |
GMimeContentEncoding
g_mime_content_encoding_from_string (const char *str);
Gets the appropriate GMimeContentEncoding enumeration value based on the input string. Leading ASCII linear whitespace (SP, HTAB, CR and LF) is skipped; the first linear whitespace or semicolon terminates the case-insensitive encoding name. Any suffix after that delimiter is ignored, matching MimeKit's tolerance for semicolons added by Google Docs. Comments are not skipped.
Recognizes 7bit, 8bit, binary, base64, quoted-printable, uuencode,
x-uuencode and x-uue. The legacy 7-bit and 8-bit aliases remain supported
as a GMime compatibility extension to MimeKit.
NULL, an empty name, or malformed UTF-8 within the name returns
GMIME_CONTENT_ENCODING_UNSPECIFIED.
const char *
g_mime_content_encoding_to_string (GMimeContentEncoding encoding);
Gets the string value of the content encoding.
the encoding type as a string or NULL on error. Available
values for the encoding are: GMIME_CONTENT_ENCODING_UNSPECIFIED,
GMIME_CONTENT_ENCODING_7BIT, GMIME_CONTENT_ENCODING_8BIT,
GMIME_CONTENT_ENCODING_BINARY, GMIME_CONTENT_ENCODING_BASE64,
GMIME_CONTENT_ENCODING_QUOTEDPRINTABLE and
GMIME_CONTENT_ENCODING_UUENCODE.
A Content-Transfer-Encoding enumeration.
Used with functions like g_mime_filter_best_encoding() and
g_mime_entity_prepare() as the 'constraint' argument. These values
provide a means of letting the filter know what the encoding
constraints are for the stream.