[gmime-devel] GMime 2.99 - no more global variables



Hey all,

This is just a status update. At this point, I've gotten GMime to the point
where there are no longer any global variables.

What this means:

1. g_mime_init() no longer takes a flags argument.
a. Instead of using GMIME_ENABLE_RFC2047_WORKAROUNDS, use a GMimeParserOptions
     and call g_mime_parser_options_set_rfc2047_compliance_mode() with
     GMIME_RFC_COMPLIANCE_LOOSE.
b. Instead of using GMIME_USE_ONLY_USER_CHARSETS, simply pass a charset name
     argument to g_mime_utils_header_encode_[text,phrase]() and/or
g_mime_message_set_subject(). InternetAddress now also has a charset property that it uses when calling g_mime_utils_header_encode_phrase() internally.

2. g_mime_set_user_charsets() and g_mime_user_charsets() are gone. For encoding, they've been replaced by a charset argument as explained above. For decoding,
   you can specify a list of fallback charsets to try as part of
   GMimeParserOptions.


Enjoy,

Jeff



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]