aboutsummaryrefslogtreecommitdiffhomepage
path: root/gmime-filter-headers.c
Commit message (Collapse)AuthorAge
* notmuch: Fix off-by-one errors if a header is >200 characters long.Gravatar David Edmondson2010-06-01
| | | | | | | | | | | | | If a single header is more than 200 characters long a set of 'off by one' errors cause memory corruption. When allocating memory with: a = malloc (len); the last usable byte of the memory is 'a + len - 1' rather than 'a + len'. Fix the same bug when calculating the current offset should the buffer used for collecting the output header need to be reallocated.
* Decode headers in replyGravatar Michal Sojka2010-04-13
When headers contain non-ASCII characters, they are encoded according to rfc2047. Nomtuch reply command emits the headers in the encoded form, which makes them hard to read by humans who compose the reply. For example instead of "Subject: Re: Rozlučka" one currently sees "Subject: Re: =?iso-8859-2?q?Rozlu=E8ka?=". This patch adds a new GMime filter which is used to decode headers to UTF-8 and uses this filter when notmuch reply outputs headers. Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz>