Skip to content

Commit

Permalink
git-send-email.perl: Really add angle brackets to In-Reply-To if nece…
Browse files Browse the repository at this point in the history
…ssary

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>
  • Loading branch information
Mike Hommey authored and Junio C Hamano committed Dec 9, 2007
1 parent cc2d6b8 commit ace7208
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions git-send-email.perl
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,11 @@ sub expand_aliases {
} while (!defined $_);

$initial_reply_to = $_;
$initial_reply_to =~ s/^\s+<?/</;
$initial_reply_to =~ s/>?\s+$/>/;
}

$initial_reply_to =~ s/^\s*<?/</;
$initial_reply_to =~ s/>?\s*$/>/;

if (!defined $smtp_server) {
foreach (qw( /usr/sbin/sendmail /usr/lib/sendmail )) {
if (-x $_) {
Expand Down

0 comments on commit ace7208

Please sign in to comment.