Optimized g_strstrip (g_strdup (str))

2012-02-19  Jeffrey Stedfast  <fejj@gnome.org>

	* gmime/gmime-common.c (g_mime_strdup_trim): New function that
	optimizes g_strstrip combined with g_strdup in both speed and
	memory usage (g_strstrip won't shrink the size of the dup'd
	memory).
Handle non-standard Content-Transfer-Encodings names

2012-02-19  Jeffrey Stedfast  <fejj@gnome.org>

	* gmime/gmime-encodings.c (g_mime_content_encoding_from_string):
	Match non-standard encodings: 7-bit, 8-bit, and x-uue (the
	standard names for these are 7bit, 8bit, and x-uuencode).
Optimized g_mime_strdup_trim() and updated parser to use it

2012-02-20  Jeffrey Stedfast  <fejj@gnome.org>

	* gmime/gmime-common.c (g_mime_strdup_trim): Optimized.

	* gmime/gmime-parser.c (header_parse): Use g_mime_strdup_trim()
	instead of reimplementing the same logic here.
Get rid of unnecessary break statement.
Fixed for ENABLE_MBOX_MATCH
Fixed headers_end calculation for incomplete buffers

2012-04-12  Jeffrey Stedfast  <fejj@gnome.org>

	* gmime/gmime-parser.c (parser_scan_headers): Make sure to
	initialize 'start' before using it to calculate headers_end in
	the case where parser_fill() failed.

	Fixes bug #673493.
Fixed decoding of some rfc2184 parameters

2012-06-13  Jeffrey Stedfast  <fejj@gnome.org>

	* gmime/gmime-param.c (rfc2184_param_new): Only decode the
	* charset
	and lang if the parameter is actually encoded. Thanks to Peter
	Bloomfield for this patch.
Always clear the header cache when setting headers

2012-06-13  Jeffrey Stedfast  <fejj@gnome.org>

	* gmime/gmime-message.c: When setting a header, make sure to
	always clear the header list cache of the toplevel mime_part as
	well.
Fixed folding of headers containing really long words

2012-06-13  Jeffrey Stedfast  <fejj@gnome.org>

	* gmime/gmime-utils.c (rfc2047_encode_get_rfc822_words): When
	breaking up really long atom tokens, change the word type to
	RFC2047 so that we encode them, thus preventing forced header
	folding which cannot be unmunged.
	(header_fold): Fixed for cases where the first word in a header
	is 68 chars. (Note: this fix is largely unnecessary due to the
	above fix)
Rfc2047 encode ctrl characters in header values

2012-06-13  Jeffrey Stedfast  <fejj@gnome.org>

	* gmime/gmime-utils.c (rfc2047_encode_get_rfc822_words): Use
	is_blank() instead of is_lwsp() so that we only treat space and
	tab as word delimiters (we want to rfc2047 encode \r's and
	\n's). Check for ctrl characters when deciding what the type and
	encoding of the word is.
Updated GMimeObject docs for the raw header APIs
Updated docs again
Another docs update.
Fixed g_malloc abort() caused by malformed encoded-word token

2012-08-05  Jeffrey Stedfast  <jeff@xamarin.com>

	* gmime/gmime-utils.c (rfc2047_token_new_encoded_word): Make sure
	to properly handle broken encoded-word tokens in the form:
	=?charset?q?=.

	Fixes the g_malloc abort() in bug #679388
Use the iconv charset equivalent of the locale charset when comparing to UTF-8
Make sure to always initialize the ascii state variable

2012-08-13  Jeffrey Stedfast  <jeff@xamarin.com>

	* gmime/gmime-utils.c (tokenize_rfc2047_phrase): Don't forget to
	initialize 'ascii' to TRUE.
Fixed autogen.sh to accept libtool 2.4.* as well
Updated tests/.gitignore
Properly handle Z_BUF_ERRORs in the gzip filter

2012-10-20  Jeffrey Stedfast  <fejj@gnome.org>

	* gmime/gmime-filter-gzip.c (gunzip_filter): Apparently
	Z_BUF_ERROR isn't actually an error unless there is input
	available. Thanks to Pavlo <devgs@ukr.net> for this patch.
Prevent buffer underruns in gmime-stream-filter.c

2012-10-27  Jeffrey Stedfast  <fejj@gnome.org>

	* gmime/gmime-stream-filter.c (stream_read): Initialize presize to
	READ_PAD instead of READ_SIZE to prevent potential buffer
	underruns.