summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2007-12-09 17:17:28 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-12-09 20:18:37 (GMT)
commitace72086bbe1cd59bc15a0e5b043bdb98335af00 (patch)
tree1fff399446a48cf787388b99625a68d76650b81a
parentcc2d6b88f99cb9e00102a509f6069168ff84f08e (diff)
downloadgit-ace72086bbe1cd59bc15a0e5b043bdb98335af00.zip
git-ace72086bbe1cd59bc15a0e5b043bdb98335af00.tar.gz
git-ace72086bbe1cd59bc15a0e5b043bdb98335af00.tar.bz2
git-send-email.perl: Really add angle brackets to In-Reply-To if necessary
3803bcea tried to fix this, but it only adds the branckes when the given In-Reply-To begins and ends with whitespaces. It also didn't do anything to the --in-reply-to argument. Signed-off-by: Mike Hommey <mh@glandium.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xgit-send-email.perl5
1 files changed, 3 insertions, 2 deletions
diff --git a/git-send-email.perl b/git-send-email.perl
index 76baa8e..c0e1dd3 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -367,10 +367,11 @@ if ($thread && !defined $initial_reply_to && $prompting) {
} while (!defined $_);
$initial_reply_to = $_;
- $initial_reply_to =~ s/^\s+<?/</;
- $initial_reply_to =~ s/>?\s+$/>/;
}
+$initial_reply_to =~ s/^\s*<?/</;
+$initial_reply_to =~ s/>?\s*$/>/;
+
if (!defined $smtp_server) {
foreach (qw( /usr/sbin/sendmail /usr/lib/sendmail )) {
if (-x $_) {