[Mimedefang] which charset is being used in a mail?
David F. Skoll
dfs at roaringpenguin.com
Mon May 13 11:01:44 EDT 2002
On Mon, 13 May 2002 Karel.DeBruyne at ua.ac.be wrote:
> So I will be checking incoming mails for virusses, which might be refused
> afterwards because they are spam...
No; if you find a virus, make a note not to do the spam check. Use
a global variable:
sub filter_begin {
$DoSpamCheck = 1;
}
sub filter {
# ...
if (virus) {
# ...
$DoSpamCheck = 0;
}
if (some_other_reason_not_to_do_a_spam_check) {
# ...
$DoSpamCheck = 0;
}
}
sub filter_end {
# ...
if ($DoSpamCheck) {
# Do the spam check
}
}
It's just a matter of reworking the logic of your filter.
Regards,
David.
More information about the MIMEDefang
mailing list