Re: [PATCH] git-send-email.perl - Fix 550 EHLO argument does not match calling host
Junio C Hamano <gitster@pobox.com> writes:
> if (eval "require Net::Domain") {>> +{
>> + my $mail_domain_system; # Static variable
>
> This, and ...Show 7 quoted lines
>
>> @@ -917,6 +988,8 @@ X-Mailer: git-send-email $gitversion
>> }
>> }
>>
>> + my $maildomain;
>> +
Show 14 quoted lines
>
>> @@ -962,9 +1040,10 @@ X-Mailer: git-send-email $gitversion
>> }
>>
>> if (!$smtp) {
>> - die "Unable to initialize SMTP properly. Check config. ",
>> + die "Unable to initialize SMTP properly. Check config and use --smtp-debug. ",
>> "VALUES: server=$smtp_server ",
>> "encryption=$smtp_encryption ",
>> + "maildomain=$maildomain",
>
> You said you needed a separate local variable for reporting but that
> doesn't explain why you need three redundant variables. Why can't the
> code look like this?>
> - once set, ||= ensures that it will we used without needing to