- public unowned string? charset_best (string inbuf, size_t inlen)
- public unowned string charset_canon_name (string charset)
- public unowned string charset_iconv_name (string charset)
- public unowned string charset_iso_to_windows (string isocharset)
- public unowned string? charset_language (string charset)
- public unowned string charset_locale_name ()
- public void charset_map_init ()
- public void charset_map_shutdown ()
- public unowned string charset_name (string charset)
- public bool check_version (uint major, uint minor, uint micro)
Checks that the GMime library version meets the requirements of the
required version.
- public size_t encoding_base64_decode_step (uint8 inbuf, size_t inlen, uint8 outbuf, int state, uint32 save)
- public size_t encoding_base64_encode_close (uint8 inbuf, size_t inlen, uint8 outbuf, int state, uint32 save)
- public size_t encoding_base64_encode_step (uint8 inbuf, size_t inlen, uint8 outbuf, int state, uint32 save)
- public size_t encoding_quoted_decode_step (uint8 inbuf, size_t inlen, uint8 outbuf, int state, uint32 save)
- public size_t encoding_quoted_encode_close (uint8 inbuf, size_t inlen, uint8 outbuf, int state, uint32 save)
- public size_t encoding_quoted_encode_step (uint8 inbuf, size_t inlen, uint8 outbuf, int state, uint32 save)
- public size_t encoding_uudecode_step (uint8 inbuf, size_t inlen, uint8 outbuf, int state, uint32 save)
- public size_t encoding_uuencode_close (uint8 inbuf, size_t inlen, uint8 outbuf, uint8 uubuf, int state, uint32 save)
- public size_t encoding_uuencode_step (uint8 inbuf, size_t inlen, uint8 outbuf, uint8 uubuf, int state, uint32 save)
- public FormatOptions format_options_get_default ()
Gets the default format options.
- public string iconv_locale_to_utf8 (string str)
Allocates a new string buffer containing str
in UTF-8.
- public string iconv_locale_to_utf8_length (string str, size_t n)
Allocates a new string buffer containing the first n
bytes of str
converted to UTF-8.
- public string iconv_utf8_to_locale (string str)
Allocates a new string buffer containing str
converted to
the user's locale charset.
- public string iconv_utf8_to_locale_length (string str, size_t n)
Allocates a new string buffer containing the first n
bytes of str
converted to the user's locale charset.
- public void init ()
Initializes GMime.
- public unowned string locale_charset ()
Gets the user's locale charset (or iso-8859-1 by default).
- public unowned string? locale_language ()
Gets the user's locale language code (or
null by default).
- public ParserOptions parser_options_get_default ()
Gets the default parser options.
- public References references_parse (ParserOptions? options, string text)
Decodes a list of msg-ids as in the References and/or In-Reply-To
headers defined in rfc822.
- public void shutdown ()
Frees internally allocated tables created in
init.
- public ContentEncoding utils_best_encoding (uint8[] text)
Determines the best content encoding for the first text.length
bytes of text
.
- public string utils_decode_8bit (ParserOptions? options, uint8[] 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.
- public string utils_decode_message_id (string message_id)
Decodes a msg-id as defined by rfc822.
- public string utils_generate_message_id (string fqdn)
Generates a unique Message-Id.
- public DateTime? utils_header_decode_date (string str)
Parses the rfc822 date string.
- public string utils_header_decode_phrase (ParserOptions? options, string phrase)
Decodes an rfc2047 encoded 'phrase' header.
- public string utils_header_decode_text (ParserOptions? options, string text)
Decodes an rfc2047 encoded 'text' header.
- public string utils_header_encode_phrase (FormatOptions? options, string phrase, string? charset)
Encodes a 'phrase' header according to the rules in rfc2047.
- public string utils_header_encode_text (FormatOptions? options, string text, string? charset)
Encodes a 'text' header according to the rules in rfc2047.
- public string utils_header_format_date (DateTime date)
Allocates a string buffer containing the rfc822 formatted date string
represented by date
.
- public string utils_header_unfold (string value)
Unfolds a raw header value according to the rules in rfc822.
- public string utils_quote_string (string str)
Quotes string
as needed according to the rules in
rfc2822.
- public string utils_structured_header_fold (ParserOptions? options, FormatOptions? format, string header)
Folds a structured header according to the rules in rfc822.
- public bool utils_text_is_8bit (uint8[] text)
Determines if text
contains 8bit characters within the
first text.length
bytes.
- public void utils_unquote_string (string str)
Unquotes and unescapes a string.
- public string utils_unstructured_header_fold (ParserOptions? options, FormatOptions? format, string header)
Folds an unstructured header according to the rules in rfc822.
- public size_t ydecode_step (uint8 inbuf, size_t inlen, uint8 outbuf, int state, uint32 pcrc, uint32 crc)
Performs a 'decode step' on a chunk of yEncoded data of length
inlen
pointed to by inbuf
and writes to outbuf
.
- public size_t yencode_close (uint8 inbuf, size_t inlen, uint8 outbuf, int state, uint32 pcrc, uint32 crc)
Call this function when finished encoding data with
yencode_step to flush off the remaining state.
- public size_t yencode_step (uint8 inbuf, size_t inlen, uint8 outbuf, int state, uint32 pcrc, uint32 crc)
Performs an yEncode 'encode step' on a chunk of raw data of length
inlen
pointed to by inbuf
and writes to outbuf
.