[Mimedefang] BitDefender
Mark Suter
suter at zwitterion.humbug.org.au
Thu Aug 28 23:05:01 EDT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 2003-08-29, Stefan Schoeman wrote:
> I see in mimedefang-filter that the first available virus checker
> is used. Can anyone provide some advice on how I go about checking
> through all available Virus Scanners until there is either one found
> or until there are no more available virus scanners ?
The following will let an email through as "clean" only after all
three virus scanners listed have checked it.
# Scan for a virus using all supported virus scanners we find.
sub message_contains_virus () {
my @result;
@result = message_contains_virus_sophie() if ($Features{'Virus:SOPHIE'});
0 == $result[0] or return (wantarray ? @result : $result[0]);
@result = message_contains_virus_clamd() if ($Features{'Virus:CLAMD'});
0 == $result[0] or return (wantarray ? @result : $result[0]);
@result = message_contains_virus_filescan() if ($Features{'Virus:FileScan'});
0 == $result[0] or return (wantarray ? @result : $result[0]);
return (wantarray ? (0, 'ok', 'ok') : 0);
}
Feel free to add as many virus scanners as your site security
policy requires and your budget allows.
Yours sincerely,
- -- Mark John Suter | I know that you believe you understand
suter at humbug.org.au | what you think I said, but I am not sure
gpg key id 2C71D63D | you realise that what you heard is not
mobile 0411 262 316 | what I meant. Robert J. McCloskey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Check Keyservers or http://zwitterion.org/keys/
iD8DBQE/TsKnRYso2ixx1j0RAlLdAJ9I1Y/ZVHyC3VpO84sWA2XJuaKO3gCfe4RZ
E4o34axfznYI9RRpSGfFGmU=
=Tnrf
-----END PGP SIGNATURE-----
More information about the MIMEDefang
mailing list