clamdscan: replace immunity check with naught test
immunity check was disabled by default, as it wasn't a good policy. OTOH, a naughty check is a sensible default, as we can skip processing on messages we already decided to reject.
This commit is contained in:
parent
14e87fabdf
commit
f0c7c212c0
@ -140,7 +140,10 @@ sub data_post_handler {
|
||||
|
||||
my $filename = $self->get_filename( $transaction ) or return DECLINED;
|
||||
|
||||
#return (DECLINED) if $self->is_immune();
|
||||
if ( $self->connection->notes('naughty') ) {
|
||||
$self->log( LOGINFO, "skip, naughty" );
|
||||
return (DECLINED);
|
||||
};
|
||||
return (DECLINED) if $self->is_too_big( $transaction );
|
||||
return (DECLINED) if $self->is_not_multipart( $transaction );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user