Sorry I posted this under an old and incorrect thread.  This is a re-post
with new subject.

Several months ago I posted to this list that F-Secure version 4.50 was not
reporting definition dates correctly.  Below is the code from
qmail-scanner-queue.pl which is supposed to discover the versions, but I'm
regex-impaired, and can't figure out the changes I need to make .  Below the
code is the output from "fsav --version" for 4.50.  The current contents of
my qmail-scanner-queue.txt is simply "fsecure: 4.50/2111/." after running
qmail-scanner-queue.pl -z.  Can anybody help modify the code below to
correctly report the definition dates?

from qmail-scanner-queue.pl (version 1.20rc3):

    } elsif ($scanner eq "fsecure") {
      open(FS,"$fsecure_binary --version|")||die "failed to call
$fsecure_binary --version - $!";
      while (<FS>) {
        chomp;
        if (/^F-Secure.*(Release|version) ([0-9\.]+) build ([0-9]+)/i) {
          $SCANINFO .="fsecure: $2/$3/";
        } elsif (/sign.def version ([0-9\.]+-[0-9\.]+-[0-9\.]+)/) {
          $SCANINFO .= "$1/";
        } elsif (/fsmacro.def version ([0-9\.]+-[0-9\.]+-[0-9\.]+)/) {
          $SCANINFO .= "$1/";
        } elsif (/sign2.def version ([0-9\.]+-[0-9\.]+-[0-9\.]+)/) {
          $SCANINFO .= "$1. ";
        }
      }
      close(FS);
      $SCANINFO .= ". " if ($SCANINFO !~ /\. $/);

output from "fsav --version":
F-Secure Anti-Virus for Linux version 4.50 build 2111

Copyright (c) 1999-2003 F-Secure Corporation. All Rights Reserved.

F-Secure Anti-Virus Copyright (c) 1993-2003, F-Secure Corp.
Portions:
  Copyright (c) 1991-2003 Kaspersky Labs, Ltd.,
  Copyright (c) 1989-2003 Frisk Software Intl.

F-Secure Anti-Virus Command line client version:
        F-Secure Anti-Virus for Linux version 4.50 build 2111

F-Secure Anti-Virus Daemon version:
        F-Secure Anti-Virus for Linux version 4.50 build 2111

Scanner Engine versions:
        Frisk Software International F-PROT engine version 3.12 build 412
        Frisk Software International F-PROT database version 2003-09-16

        Kaspersky Labs. AVP FPI Engine engine version 4.0 build 164
        Kaspersky Labs. AVP FPI Engine database version 2003-09-16

Thanks in advance,
Dennis Duval



-------------------------------------------------------
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

Reply via email to