[Mimedefang] Any point in using File::Scan as well as clamav?

Bill Maidment bill.maidment at elgas.com.au
Mon Aug 4 18:22:05 EDT 2003


Thanks for that. I've got it working, but I had to change
message_contains_virus... ()
to
entity_contains_virus... ($e)
in the second sub.

Or am I missing a really subtle point?

Cheers
Bill

Peter Campion-Bye wrote:

>Below is the code I'm using in my filter...
>
snip...............
>
>sub entity_contains_virus ($) {
>  md_syslog('info', "Scanning entity for virii...");
>  my($e) = @_;
>  my($code, $cat, $act);
>  ($code, $cat, $act) = message_contains_virus_filescan();
>  return (wantarray ? ($code, $cat, $act) : $code) if ($act ne "ok");
>  ($code, $cat, $act) = message_contains_virus_clamd();
>  return (wantarray ? ($code, $cat, $act) : $code) if ($act ne "ok");
>  return (wantarray ? (0, 'ok', 'ok') : 0);
>}





More information about the MIMEDefang mailing list