[Logwatch-Devel] Another minor patch for the mailscanner script

John Wilcock john at tradoc.fr
Thu Feb 17 02:25:40 MST 2005


... to cope with a minor change in MS's parsing of output from F-prot.

John.

-- 
-- Over 2500 webcams from ski resorts around the world - www.snoweye.com
-- Translate your technical documents and web pages    - www.tradoc.fr
-------------- next part --------------
--- mailscanner-1.6	2005-02-17 08:11:55.000000000 +0100
+++ mailscanner	2005-02-17 10:22:37.000000000 +0100
@@ -107,7 +107,7 @@
    } elsif ($ThisLine =~ m/^\/var\/spool\/MailScanner\/incoming\/.+ Infection: (.+)/i) {
       $VirusType_Fprot{$1}++;
       $MailScan_Virus_Fprot++;
-   } elsif ($ThisLine =~ m/^\/var\/spool\/MailScanner\/incoming\/.+ could be infected with an unknown virus/i) {
+   } elsif ($ThisLine =~ m/^\/var\/spool\/MailScanner\/incoming\/.+ could be/i) {
       $MailScan_Virus_Fprot++;
    } elsif ($ThisLine =~ m/Found the (.+) virus !!!/) {
       $VirusType_McAfee{$1}++;


More information about the Logwatch-Devel mailing list