[Mimedefang] quarantine bad_filename messages
David F. Skoll
dfs at roaringpenguin.com
Tue Sep 9 09:31:49 EDT 2014
On Tue, 09 Sep 2014 12:12:03 +0200
Marcus Schopen <lists at localguru.de> 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.
More information about the MIMEDefang
mailing list