git-send-email.perl: Add angle brackets to In-Reply-To if necessary
authorDavid Kastrup <dak@gnu.org>
Wed, 12 Sep 2007 05:53:45 +0000 (07:53 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Sep 2007 07:57:38 +0000 (00:57 -0700)
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>
git-send-email.perl

index e0b7d1245eb78b2a74d9de3e86154ebe93f93ca4..195fe6f70a3a13c17b67ad8d067e8e0ff4cc9195 100755 (executable)
@@ -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) {