[Mimedefang] ACCEPT_AND_NO_MORE_FILTERING

David F. Skoll dfs at roaringpenguin.com
Thu Nov 19 10:04:39 EST 2009


P wrote:

> Is it possible to do a viruscheck in filter_begin, and then after that
> do ACCEPT_AND_NO_MORE_FILTERING?

No.  You need to set a flag in your filter and manually skip all the
rest of the filtering.

Something like:

my $SkipFiltering;
sub filter_begin
{
	$SkipFiltering = 0;

	# ...

	if (some_condition()) {
	        $SkipFiltering = 1;
        }
}

sub filter
{
        return if $SkipFiltering;
	#...
}

sub filter_end
{
	return if $SkipFiltering;
	# ...
}

Regards,

David.



More information about the MIMEDefang mailing list