[Mimedefang] Per domain filtering

David F. Skoll dfs at roaringpenguin.com
Fri Nov 14 12:53:15 EST 2003


On Fri, 14 Nov 2003, Kevin A. McGrail wrote:

> > Also in filter_begin, before you do any scanning but after
> > stream_by_domain, set a flag like $dont_filter.  Then wrap each call to a
> > virus or spam scanner with "if (!$dont_filter) { ... }"

> I believe this will fail because I thought that other subroutines can
> actually be run by other multiplexor children.

Nope.  See MAINTAINING STATE in the mimedefang-filter man page.
The functions filter_begin, filter, filter_multipart, filter_end
are in a single group and are guaranteed to be called sequentially in
a single process.

Regards,

David.



More information about the MIMEDefang mailing list