Re: [PATCH] send-email: improve RFC2047 quote parsing

2012-07-31 Thread Thomas Rast
Junio C Hamano gits...@pobox.com writes: Thomas Rast tr...@student.ethz.ch writes: This patch fixes the first two by doing a more careful decoding of the =AB outer quoting. Fixing the fundamental issues is left for a future, more intrusive, patch. What is this =AB thing? The

[PATCH] send-email: improve RFC2047 quote parsing

2012-07-30 Thread Thomas Rast
The RFC2047 unquoting, used to parse email addresses in From and Cc headers, is broken in several ways: * It erroneously substitutes ' ' for '_' in *the whole* header, even outside the quoted field. [Noticed by Christoph.] * It is too liberal in its matching, and happily matches the start of

Re: [PATCH] send-email: improve RFC2047 quote parsing

2012-07-30 Thread Junio C Hamano
Thomas Rast tr...@student.ethz.ch writes: The RFC2047 unquoting, used to parse email addresses in From and Cc headers, is broken in several ways: * It erroneously substitutes ' ' for '_' in *the whole* header, even outside the quoted field. [Noticed by Christoph.] * It is too liberal in