@matheusbsbs / matheus-bagliano / commits / ace72086bb
Fork 0

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>

Mike Hommey committed Dec 9, 2007 at 18:17 UTC ace72086bbe1cd59bc15a0e5b043bdb98335af00
1 file changed +3 -2
git-send-email.perl
+3 -2
@@ -367,10 +367,11 @@ if ($thread && !defined $initial_reply_to && $prompting) {
367 } while (!defined $_);
368
369 $initial_reply_to = $_;
370 - $initial_reply_to =~ s/^\s+<?/</;
371 - $initial_reply_to =~ s/>?\s+$/>/;
370 }
371
372 +$initial_reply_to =~ s/^\s*<?/</;
373 +$initial_reply_to =~ s/>?\s*$/>/;
374 +
375 if (!defined $smtp_server) {
376 foreach (qw( /usr/sbin/sendmail /usr/lib/sendmail )) {
377 if (-x $_) {