# [PATCH] Avoid composing too long "References" header.

1 messages from 2007-04-05 to 2007-04-05. Participants: YOSHIFUJI Hideaki / 吉藤英明.
Thread: https://gitlist.dev/t/7543

## YOSHIFUJI Hideaki / 吉藤英明, 2007-04-05 23:50

Subject: [PATCH] Avoid composing too long "References" header.
Message-ID: <20070406.085024.18669509.yoshfuji@linux-ipv6.org>
URL: https://gitlist.dev/e/20070406.085024.18669509.yoshfuji%40linux-ipv6.org

```
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>

diff --git a/git-send-email.perl b/git-send-email.perl
index ae50990..1278fcb 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -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";
 		}

-- 
YOSHIFUJI Hideaki @ USAGI Project  <yoshfuji@linux-ipv6.org>
GPG-FP  : 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA

```
