X-Git-Url: https://git.jankratochvil.net/?p=PerlMail.git;a=blobdiff_plain;f=perlmail-accept;fp=perlmail-accept;h=5abd067e40f5ac96d581d404281f145ccd582fde;hp=d9a944d585a8ab87a820b898ebed66104384bda6;hb=d3f7164a228e46921c5a9acaab1c086461e209bd;hpb=ef91625985981ac6f2c9e607eba4f4b0a9deb425 diff --git a/perlmail-accept b/perlmail-accept index d9a944d..5abd067 100755 --- a/perlmail-accept +++ b/perlmail-accept @@ -600,7 +600,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;