@matheusbsbs / matheus-bagliano / commits / 3803bceae8
Fork 0

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>

David Kastrup committed Sep 12, 2007 at 07:53 UTC 3803bceae84fe122eccb49e3096abead508cde8f
1 file changed +2 -1
git-send-email.perl
+2 -1
@@ -317,7 +317,8 @@ if ($thread && !defined $initial_reply_to && $prompting) {
317 } while (!defined $_);
318
319 $initial_reply_to = $_;
320 - $initial_reply_to =~ s/(^\s+|\s+$)//g;
320 + $initial_reply_to =~ s/^\s+<?/</;
321 + $initial_reply_to =~ s/>?\s+$/>/;
322 }
323
324 if (!$smtp_server) {