2004-06-06 Jeffrey Stedfast * README: Updated. * configure.in: Bumped version to 2.1.6 * gmime/gmime-parser.c (parser_construct_multipart): Instead of using g_mime_object_set_content_type(), destroy the current content_type object and set our own on it directly. This prevents the raw Content-Type header value from being overridden by the re-written version from our parsed object. (parser_construct_leaf_part): Same. * gmime/gmime-part.c (mime_part_write_to_stream): Don't sync the GMimeDisposition object to the header here anymore. We want to try and keep the original raw header if this is a parsed message. 2004-06-03 Jeffrey Stedfast * gmime/gmime-part.c (sync_content_disposition): Moved. Also protect against a NULL disposition. (mime_part_write_to_stream): Sync the Content-Disposition header before writing to the stream. * gmime/gmime-utils.c (header_fold): Fixed a folding bug where we could get a blank line (well, wasn't really blank - but we would get a "\n\t\n" sequence which isn't really useful nor desirable). * gmime/gen-table.c: Added a new bit and corresponding macro. * gmime/gmime-table-private.h: Updated. * gmime/gmime-param.c (encode_param): If conversion into the best charset fails, fall back to using UTF-8. Also use the new convenience macro, is_attrchar(), to decide which characters in the param value to encode. (param_list_format): Use is_attrchar() for calculating how many characters we expect to either have to quote or encode. (decode_param_list): Rewritten. 2004-05-31 Jeffrey Stedfast * gmime/gmime-data-wrapper.c (g_mime_data_wrapper_set_stream): Updated gtk-doc comments to note that you'll probably also want to call g_mime_data_wrapper_set_encoding(). 2004-05-26 Jeffrey Stedfast * gmime/gmime-message.c (write_subject): New function. Use unstructured folding rather than the default. (g_mime_message_init): Register the subject header writer. * gmime/gmime-utils.c (g_mime_utils_structured_header_fold): New function (same as g_mime_utils_header_fold() but more appropriately named). (g_mime_utils_unstructured_header_fold): Fold unstructured headers like Subject. (header_fold): Moved all of the g_mime_utils_header_fold() logic into here with a small adjustment to differentiate structured vs unstructured header folding. 2004-05-25 Jeffrey Stedfast * gmime/gmime-param.c (param_list_format): Modified to try and squeeze more characters per line and still keep it under 76 chars per line. 2004-05-24 Jeffrey Stedfast * gmime/gmime-filter-gzip.c (g_mime_filter_gzip_finalize): Call inflateEnd/deflateEnd to fix a memory leak. * gmime/gmime-parser.c (parser_offset): If priv->offset == -1, don't bother doing any pointer arithmetic as it will result in a value that will break certain code (eg. the boundary matching code). 2004-05-20 Jeffrey Stedfast * gmime/gmime-gpg-context.c (gpg_ctx_new): Remember if our environment is in UTF-8 or not. (gpg_ctx_parse_status): Only convert the user name from the locale charset to UTF-8 if the env isn't UTF-8. (gpg_ctx_parse_status): Convert the password to the locale charset if the locale isn't UTF-8.