From: Eric Wong Date: Wed, 18 Apr 2018 00:54:15 GMT Subject: Re: [PATCH] send-email: avoid duplicate In-Reply-To/References Message-ID: <20180418005415.GA31588@dcvr> In-Reply-To: <20180417211630.22873-1-stefan@agner.ch> Stefan Agner wrote: > This addresses the issue reported here: > https://public-inbox.org/git/997160314bbafb3088a401f1c09ccb08@agner.ch/ Thanks for bringing this up. > --- a/git-send-email.perl > +++ b/git-send-email.perl > @@ -1642,10 +1642,15 @@ foreach my $t (@files) { > elsif (/^Content-Transfer-Encoding: (.*)/i) { > $xfer_encoding = $1 if not defined $xfer_encoding; > } > + elsif (/^In-Reply-To: (.*)/i) { > + $in_reply_to = $1; > + } > + elsif (/^References: (.*)/i) { > + $references = $1; > + } References: can span multiple lines with --thread=deep in format-patch (technically any header can be, but References: is common)