On Tue, 09 Sep 2014 12:12:03 +0200
Marcus Schopen <[email protected]> wrote:
> I'd like to use "action_quarantine_entire_message" for messages
> containing attachments with bad_filename, but not sure where to place
> the quarantine command. Is "sub filter_bad_filename" the right place?
You can do it there, or you can do something like this:
my $do_quarantine;
sub filter_begin {
$do_quarantine = 0;
}
sub filter_bad_filename {
if (...) {
$do_quarantine = 1;
}
}
sub filter_end {
if ($do_quarantine) {
action_quarantine_entire_message(...);
return;
}
}
Regards,
David.
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID. You may ignore it.
Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang