git/builtin
Jeff King 5b38456ec7 mailinfo: always clean up rfc822 header folding
Without the "-k" option, mailinfo will convert a folded
subject header like:

  Subject: this is a
    subject that doesn't
    fit on one line

into a single line. With "-k", however, we assumed that
these newlines were significant and represented something
that the sending side would want us to preserve.

For messages created by format-patch, this assumption was
broken by a1f6baa (format-patch: wrap long header lines,
2011-02-23).  For messages sent by arbitrary MUAs, this was
probably never a good assumption to make, as they may have
been folding subjects in accordance with rfc822's line
length recommendations all along.

This patch now joins folded lines with a single whitespace
character. This treats header folding purely as a syntactic
feature of the transport mechanism, not as something that
format-patch is trying to tell us about the original
subject.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-05-26 14:13:38 -07:00
..
2010-12-12 21:49:53 -08:00
2010-11-24 15:55:19 -08:00
2010-11-24 15:55:19 -08:00
2010-10-21 17:16:10 -07:00
2011-01-12 21:26:51 -08:00
2010-08-31 16:23:31 -07:00
2010-12-12 21:49:50 -08:00
2010-12-10 12:58:06 -08:00
2010-12-12 21:49:52 -08:00
2010-11-24 15:55:19 -08:00
2010-11-15 10:04:43 -08:00
2010-12-08 11:24:12 -08:00
2010-08-12 18:07:09 -07:00
2010-11-24 15:55:19 -08:00
2010-09-03 09:43:41 -07:00
2010-07-07 11:18:26 -07:00
2010-11-17 15:01:00 -08:00
2010-12-08 11:24:13 -08:00
2010-11-15 10:04:43 -08:00