X-Git-Url: http://git.jankratochvil.net/?p=PerlMail.git;a=blobdiff_plain;f=perlmail-accept;h=3432acb7d094afd6508523254e3715e30d3177f1;hp=d9a944d585a8ab87a820b898ebed66104384bda6;hb=851de39e0b19fb4bd49c386e0da048e987110b72;hpb=f29d6dc23ac3e500c8afad40a165f3d45fb67998 diff --git a/perlmail-accept b/perlmail-accept index d9a944d..3432acb 100755 --- a/perlmail-accept +++ b/perlmail-accept @@ -566,7 +566,9 @@ my($domain,$full,$timeout)=@_; my $code=Mail::Audit::rblcheck($self_faked,$timeout); next if !$code; # Some 0.0.0.0 etc. found for , see: &Mail::Audit::MAPS::_checkit - return $code if $code!='1 Invalid IP address '; + # Do not: $code!='1 Invalid IP address ' + # as it causes warn. + return $code if $code ne '1 Invalid IP address '; return if !$full; } } @@ -600,7 +602,9 @@ my($cmd)=@_; my $err=$?; $pidcheck && $pidcheck==$pid or do { cluck "waitpid for $cmd returned $pidcheck!=$pid"; return 0; }; - $status=~s/^stdin: //; + $status=~s/^stdin: //mg; + # Prevent: LibClamAV Warning: PGP encoded attachment not scanned + $status=~s/^.*\bwarning:.*\n//img; $status=~s/\n$//; return $status if $status ne "OK" && $status; return _spamchildcode $err,$status;