[Mimedefang] Limiting email size to scan for viruses?
eqx at gmx.net
eqx at gmx.net
Thu Oct 14 00:51:05 EDT 2004
The following should work too:
$size = (stat($entity->bodyhandle->path))[7];
if ($size < 2097152) {
# Scan for viruses if any virus-scanners are installed
my($code, $category, $action) = message_contains_virus();
}
I think INPUTMSG is the whole message, $size is the attachement size only.
Regards, Mike
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" <fgleiser at cactus.fi.uba.ar>
To: <mimedefang at lists.roaringpenguin.com>
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
MIMEDefang at lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
--
+++ GMX DSL Premiumtarife 3 Monate gratis* + WLAN-Router 0,- EUR* +++
Clevere DSL-Nutzer wechseln jetzt zu GMX: http://www.gmx.net/de/go/dsl
More information about the MIMEDefang
mailing list