ProcessClamAVOutput unrecognised line (with up-to-date clamav)

Nicolas Schmitz Nicolas.Schmitz at EC-NANTES.FR
Wed Oct 5 09:03:50 IST 2005


    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

>Don't worry, it is quite harmless. If you want to stop it doing this,  
>apply this patch:
>
>- --- SweepViruses.pm.old    2005-07-11 16:44:22.000000000 +0100
>+++ SweepViruses.pm     2005-10-04 16:52:35.874101033 +0100
>@@ -2466,7 +2466,8 @@
>    $logline = $line;
>    $logline =~ s/%/%%/g;
>    MailScanner::Log::WarnLog("ProcessClamAVOutput: unrecognised " .
>- -                            "line \"$logline\". Please contact the  
>authors!");
>+                            "line \"$logline\". Please contact the  
>authors!")
>+    unless $logline =~ /Empty.*file/;
>    return 0;
>}
>
>That is for /usr/lib/MailScanner/MailScanner/SweepViruses.pm. Remove  
>one line and replace it with 2 new lines. Pretty obvious I hope :-)
>
Helllo, thanks for the answer.

But I don't think /Empty.*file/ will match

MailScanner[17637]: poster.pdf
MailScanner[17637]: ProcessClamAVOutput: unrecognised line  
"poster.pdf".


There is two different problems : one with "Empty file" and one with 
only the name of a file.
I know it's harmless, but I use logcheck (http://logcheck.org/), and I 
can't find a valid regexp to exclude that kind of line, without 
excluding all the MailScanner log !

Thanks.

-- 
Nicolas Schmitz

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!



More information about the MailScanner mailing list