Skip to content

Commit 3803bce

Browse files
dakhubgitgitster
authored andcommitted
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>
1 parent 060fe57 commit 3803bce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

git-send-email.perl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,8 @@ sub expand_aliases {
317317
} while (!defined $_);
318318

319319
$initial_reply_to = $_;
320-
$initial_reply_to =~ s/(^\s+|\s+$)//g;
320+
$initial_reply_to =~ s/^\s+<?/</;
321+
$initial_reply_to =~ s/>?\s+$/>/;
321322
}
322323

323324
if (!$smtp_server) {

0 commit comments

Comments
 (0)