Skip to content

Commit ace7208

Browse files
glandiumgitster
authored andcommitted
git-send-email.perl: Really add angle brackets to In-Reply-To if necessary
3803bce 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>
1 parent cc2d6b8 commit ace7208

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

git-send-email.perl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,10 +367,11 @@ sub expand_aliases {
367367
} while (!defined $_);
368368

369369
$initial_reply_to = $_;
370-
$initial_reply_to =~ s/^\s+<?/</;
371-
$initial_reply_to =~ s/>?\s+$/>/;
372370
}
373371

372+
$initial_reply_to =~ s/^\s*<?/</;
373+
$initial_reply_to =~ s/>?\s*$/>/;
374+
374375
if (!defined $smtp_server) {
375376
foreach (qw( /usr/sbin/sendmail /usr/lib/sendmail )) {
376377
if (-x $_) {

0 commit comments

Comments
 (0)