Untested but you should be able to change filter_begin to something like
if (-s "./INPUTMSG" < 2048*1024) {
# Scan for viruses if any virus-scanners are installed
my($code, $category, $action) = message_contains_virus();
}
Regards,
KAM
----- Original Message -----
From: "Fernando Gleiser" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 13, 2004 4:17 PM
Subject: [Mimedefang] Limiting email size to scan for viruses?
> Is there a way to scan for viruses only messages smaller than 2MB?
_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang