summaryrefslogtreecommitdiff
path: root/git-send-email.perl
diff options
context:
space:
mode:
authorDavid Kastrup <dak@gnu.org>2007-09-12 07:53:45 +0200
committerJunio C Hamano <gitster@pobox.com>2007-09-12 00:57:38 -0700
commit3803bceae84fe122eccb49e3096abead508cde8f (patch)
treeed77a320f67a54c118f9b873be83e5fb7073d376 /git-send-email.perl
parent060fe5718455828b2ce5721d26be6399d782e415 (diff)
downloadgit-3803bceae84fe122eccb49e3096abead508cde8f.tar.gz
git-send-email.perl: Add angle brackets to In-Reply-To if necessary
Although message-id by defintion should have surrounding angle brackets, there is no point forcing people to type them in. Signed-off-by: David Kastrup <dak@gnu.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-send-email.perl')
-rwxr-xr-xgit-send-email.perl3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index e0b7d1245e..195fe6f70a 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -317,7 +317,8 @@ if ($thread && !defined $initial_reply_to && $prompting) {
} while (!defined $_);
$initial_reply_to = $_;
- $initial_reply_to =~ s/(^\s+|\s+$)//g;
+ $initial_reply_to =~ s/^\s+<?/</;
+ $initial_reply_to =~ s/>?\s+$/>/;
}
if (!$smtp_server) {