Browse Source

send-email: do not muck with initial-reply-to when unset.

When not prompting, initial_reply_to can be left unset.  Do not try to
sanitize it and get useless warning.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Junio C Hamano 17 years ago
parent
commit
ace9c2a9dd
  1. 7
      git-send-email.perl

7
git-send-email.perl

@ -368,9 +368,10 @@ if ($thread && !defined $initial_reply_to && $prompting) { @@ -368,9 +368,10 @@ if ($thread && !defined $initial_reply_to && $prompting) {

$initial_reply_to = $_;
}

$initial_reply_to =~ s/^\s*<?/</;
$initial_reply_to =~ s/>?\s*$/>/;
if (defined $initial_reply_to && $_ ne "") {
$initial_reply_to =~ s/^\s*<?/</;
$initial_reply_to =~ s/>?\s*$/>/;
}

if (!defined $smtp_server) {
foreach (qw( /usr/sbin/sendmail /usr/lib/sendmail )) {

Loading…
Cancel
Save