summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7484529)
raw | patch | inline | side by side (parent: 7484529)
author | Ryan Anderson <rda@google.com> | |
Mon, 29 May 2006 19:30:12 +0000 (12:30 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 30 May 2006 06:15:36 +0000 (23:15 -0700) |
Signed-off-by: Ryan Anderson <rda@google.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-send-email.perl | patch | blob | history |
diff --git a/git-send-email.perl b/git-send-email.perl
index 312a4ea2aa10189eeb470a185993bb7f8af45d0e..ad8944dffce09ba81163ac18b9ebcf87db14bfc9 100755 (executable)
--- a/git-send-email.perl
+++ b/git-send-email.perl
}
# Variables we set as part of the loop over files
-our ($message_id, $cc, %mail, $subject, $reply_to, $message);
+our ($message_id, $cc, %mail, $subject, $reply_to, $references, $message);
sub extract_valid_address {
my $address = shift;
Message-Id: $message_id
X-Mailer: git-send-email $gitversion
";
- $header .= "In-Reply-To: $reply_to\n" if $reply_to;
+ if ($reply_to) {
+
+ $header .= "In-Reply-To: $reply_to\n";
+ $header .= "References: $references\n";
+ }
if ($smtp_server =~ m#^/#) {
my $pid = open my $sm, '|-';
# set up for the next message
if ($chain_reply_to || length($reply_to) == 0) {
$reply_to = $message_id;
+ if (length $references > 0) {
+ $references .= " $message_id";
+ } else {
+ $references = "$message_id";
+ }
}
make_message_id();
}