@matheusbsbs / matheus-bagliano / commits / ace9c2a9dd
Fork 0

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>

Junio C Hamano committed Dec 10, 2007 at 21:44 UTC ace9c2a9dd7c9e54194998fc6b7c677dbb7d0902
1 file changed +4 -3
git-send-email.perl
+4 -3
@@ -368,9 +368,10 @@ if ($thread && !defined $initial_reply_to && $prompting) {
368
369 $initial_reply_to = $_;
370 }
371 -
372 -$initial_reply_to =~ s/^\s*<?/</;
373 -$initial_reply_to =~ s/>?\s*$/>/;
371 +if (defined $initial_reply_to && $_ ne "") {
372 + $initial_reply_to =~ s/^\s*<?/</;
373 + $initial_reply_to =~ s/>?\s*$/>/;
374 +}
375
376 if (!defined $smtp_server) {
377 foreach (qw( /usr/sbin/sendmail /usr/lib/sendmail )) {