not logging ">>> Virus", only "Found 1 viruses"

Julian Field mailscanner at ecs.soton.ac.uk
Mon Aug 5 13:44:54 IST 2002


Oops, sorry, didn't read my own code carefully enough. This patch will work
fine (and is in the main code).

At 13:24 05/08/2002, you wrote:
>Hello,
> >
> > The McAfee parser doesn't log the report lines as they are broken into 2
> > and are therefore a real pain to log. The others log them at log level
> "info".
>
>I am using the appended patch to enable logging for McAfee VirusScan.
>This is running now for some weeks on my mailers without problems
>(running MailScanner-3.21-1).
>
>Andreas Piper
>
>*** sweep.pl.orig       Wed Jul 24 16:08:55 2002
>--- sweep.pl    Mon Aug  5 14:14:20 2002
>***************
>*** 567,572 ****
>--- 567,573 ----
>
>     # make an equivalent report line from the last 2
>     $report = "$lastline$currentline";
>+   Log::InfoLog($report);
>     # note: '$dot' does not become '.'
>     ($dot, $id, $part, @rest) = split(/\//, $lastline);
>     $infections->{"$id"}{"$part"} .= $report . "\n";

--
Julian Field                Teaching Systems Manager
jkf at ecs.soton.ac.uk         Dept. of Electronics & Computer Science
Tel. 023 8059 2817          University of Southampton
                             Southampton SO17 1BJ



More information about the MailScanner mailing list