Skip to content

Commit c50f76a

Browse files
committed
Merge branch 'sa/send-email-dedup-some-headers'
When fed input that already has In-Reply-To: and/or References: headers and told to add the same information, "git send-email" added these headers separately, instead of appending to an existing one, which is a violation of the RFC. This has been corrected. * sa/send-email-dedup-some-headers: send-email: avoid duplicate In-Reply-To/References
2 parents 0cd58d8 + 256be1d commit c50f76a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

git-send-email.perl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1642,10 +1642,15 @@ sub send_message {
16421642
elsif (/^Content-Transfer-Encoding: (.*)/i) {
16431643
$xfer_encoding = $1 if not defined $xfer_encoding;
16441644
}
1645+
elsif (/^In-Reply-To: (.*)/i) {
1646+
$in_reply_to = $1;
1647+
}
1648+
elsif (/^References: (.*)/i) {
1649+
$references = $1;
1650+
}
16451651
elsif (!/^Date:\s/i && /^[-A-Za-z]+:\s+\S/) {
16461652
push @xh, $_;
16471653
}
1648-
16491654
} else {
16501655
# In the traditional
16511656
# "send lots of email" format,

0 commit comments

Comments
 (0)