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

2012-07-31 Thread Thomas Rast
Junio C Hamano writes: > Thomas Rast 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 two-hex-digits quoting in the style of MI

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

2012-07-30 Thread Junio C Hamano
Thomas Rast 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 its matching, a

[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