Checks that the GMime library version meets the requirements of the required version.
Gets the appropriate #GMimeContentEncoding enumeration value based on the input string.
Gets the string value of the content encoding.
Allocates a new string buffer containing str in UTF-8.
Allocates a new string buffer containing the first n bytes of str converted to UTF-8.
Allocates a new string buffer containing str converted to the user's locale charset.
Allocates a new string buffer containing the first n bytes of str converted to the user's locale charset.
Initializes GMime.
Gets the user's locale charset (or iso-8859-1 by default).
Gets the user's locale language code (or null by default).
Frees internally allocated tables created in gmime.global.init_.
Determines the best content encoding for the first len bytes of text.
Attempts to convert text in an unknown 8bit/multibyte charset into UTF-8 by finding the charset which will convert the most bytes into valid UTF-8 characters as possible. If no exact match can be found, it will choose the best match and convert invalid byte sequences into question-marks (?) in the returned string buffer.
Decodes a msg-id as defined by rfc822.
Generates a unique Message-Id.
Parses the rfc822 date string.
Decodes an rfc2047 encoded 'phrase' header.
Decodes an rfc2047 encoded 'text' header.
Encodes a 'phrase' header according to the rules in rfc2047.
Encodes a 'text' header according to the rules in rfc2047.
Allocates a string buffer containing the rfc822 formatted date string represented by date.
Unfolds a raw header value according to the rules in rfc822.
Quotes string as needed according to the rules in rfc2822.
Folds a structured header according to the rules in rfc822.
Determines if text contains 8bit characters within the first len bytes.
Unquotes and unescapes a string.
Folds an unstructured header according to the rules in rfc822.
Performs a 'decode step' on a chunk of yEncoded data of length inlen pointed to by inbuf and writes to outbuf. Assumes the =ybegin and =ypart lines have already been stripped off.
Call this function when finished encoding data with gmime.global.yencodeStep to flush off the remaining state.
Performs an yEncode 'encode step' on a chunk of raw data of length inlen pointed to by inbuf and writes to outbuf.
Global functions for gmime3 library