Skip to content

Commit

Permalink
Fix bug in Sisimai::Reason::VirusDetected->true; HELO => EHLO
Browse files Browse the repository at this point in the history
  • Loading branch information
azumakuniyuki committed Sep 7, 2024
1 parent 472bd47 commit ea7c736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Sisimai/Reason/VirusDetected.pm
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ sub true {
# mand to be sent before the SMTP DATA command because all the MTAs read the headers and the
# entire message body after the DATA command.
return 1 if $argvs->{'reason'} eq 'virusdetected';
return 0 if $argvs->{'smtpcommand'} eq 'CONN' || $argvs->{'smtpcommand'} eq 'HELO'
return 0 if $argvs->{'smtpcommand'} eq 'CONN' || $argvs->{'smtpcommand'} eq 'EHLO'
|| $argvs->{'smtpcommand'} eq 'HELO' || $argvs->{'smtpcommand'} eq 'MAIL'
|| $argvs->{'smtpcommand'} eq 'RCPT';
return __PACKAGE__->match(lc $argvs->{'diagnosticcode'});
Expand Down

0 comments on commit ea7c736

Please sign in to comment.