Hello. I recently downloaded 'F-Prot Antivirus for Linux Workstations - for home users'. (http://www.f-prot.com/products/home_use/linux/)
The version string of f-prot can be taken by 'f-prot -verno' like the following: $ f-prot -verno F-PROT ANTIVIRUS Program version: 4.2.0 Engine version: 3.13.4 VIRUS SIGNATURE FILES SIGN.DEF created 29 August 2003 SIGN2.DEF created 29 August 2003 MACRO.DEF created 25 August 2003 So to gather the correct version number of f-prot, the following patch should be applied: --- qmail-scanner-1.20rc2/qmail-scanner-queue.template 2003-08-28 20:26:36.000000000 +0900 +++ qmail-scanner-1.20rc2/qmail-scanner-queue.template 2003-08-29 14:43:57.000000000 +0900 @@ -1435,17 +1435,13 @@ close(FS); $SCANINFO .= ". " if ($SCANINFO !~ /\. $/); } elsif ($scanner eq "fprot") { - open(FP,"$fprot_binary \?|")||die "failed to call $fprot_binary --version - $!"; + open(FP,"$fprot_binary -verno|")||die "failed to call $fprot_binary -verno - $!"; while (<FP>) { chomp; - if (/F-PROT ([0-9\.]+)/) { + if (/Program version: ([0-9\.]+)/) { $SCANINFO .="f-prot: $1"; - } elsif (/SIGN.DEF version ([0-9\.]+-[0-9\.]+-[0-9\.]+)/) { - $SCANINFO .= "$1/"; - } elsif (/MACRO.DEF version ([0-9\.]+-[0-9\.]+-[0-9\.]+)/) { - $SCANINFO .= "$1/"; - } elsif (/SIGN2.DEF version ([0-9\.]+-[0-9\.]+-[0-9\.]+)/) { - $SCANINFO .= "$1"; + } elsif (/Engine version: ([0-9\.]+)/) { + $SCANINFO .= "/$1. "; } } $SCANINFO .= ". "; EXAMPLE: f-prot: 4.2.0/3.13.4. Regards, -- Kazuhiko @ ... Momonga Linux http://www.momonga-linux.org/ Electronic Dictionary Open Laboratory http://openlab.jp/edict/ Electronic Font Open Laboratory http://openlab.jp/efont/ GK Kyoto Inc. http://www.gk-kyoto.com/ Univehicle.net http://www.univehicle.net/ ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Qmail-scanner-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general