Code

Avoid composing too long "References" header.
authorYOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org>
Thu, 5 Apr 2007 23:50:24 +0000 (08:50 +0900)
committerJunio C Hamano <junkio@cox.net>
Fri, 6 Apr 2007 23:49:44 +0000 (16:49 -0700)
The number of characters in a line MUST be no more than 998 characters,
and SHOULD be no more than 78 characters (RFC2822).
It is much safer to fold the header by ourselves.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-send-email.perl

index ae50990d081c3709c0a498422be382b9a632f5ec..1278fcba462f632a3687742f74cc15c0498874e2 100755 (executable)
@@ -595,7 +595,7 @@ foreach my $t (@files) {
        if ($chain_reply_to || !defined $reply_to || length($reply_to) == 0) {
                $reply_to = $message_id;
                if (length $references > 0) {
-                       $references .= " $message_id";
+                       $references .= "\n $message_id";
                } else {
                        $references = "$message_id";
                }