Excellent, thanks!  This has been the one thing holding me back from going to qs 
1.20rc3.  Does it mean you have to wipe out the quaranteen log and start fresh though 
or will qss still parse the pre-1.20rc3 log entries.  (I'm guessing No, but thought 
I'd check)

Josh

On Thu, 25 Sep 2003 14:01:58 +0200
"Arno Slatius" <[EMAIL PROTECTED]> wrote:

> Hi all,
> 
> I allready upgraded to QmailScanner 1.20RC3 but the Qmail Scanners Stats got
> completely screwed up with that move.
> The QSS php code was quite simple (but horrible ugly and undocumented....)
> so I adjusted it to work with RC3. This works for me so far (using f-prot),
> I haven't got any other logging to test with.
> So for anyone who likes the graphs; a diff is included below.
> 
> Arno
> 
> 
> [EMAIL PROTECTED] qss]# diff -b index.php index.php.bak
> 104a105,106
> >
> >
> 107c109,110
> <       $domain = explode("@",$val[4]);
> ---
> >       $domain = explode("@",$val[1]);
> >
> 112,115c115,117
> <         if (strncmp("Clear",$val[1],5) <> 0) {
> <                 $virname=explode(":",$val[1]);
> <               $data[] = $date."\t".$domain[1]."\t".$virname[1];
> <         }
> ---
> >       $data[] = $date."\t".$domain[1]."\t".$val[4];
> >
> >
> 132,133c134
> < $totalCount = count($logFile);
> < $virusCount = count($data);
> ---
> > $virusCount = count($logFile);
> 403,411c404
> <                   <font face="Verdana, Arial, Helvetica, sans-serif"
> size="1">Qmail-Scanner stopped
> <                   <?PHP
> <                     print($virusCount);
> <                     if ($virusCount >= 1)
> <                         echo " virus since ";
> <                     else
> <                         echo " viruses since ";
> <                     echo $virusDate." in ".$totalCount." messages";
> <                   ?>.</font></td>
> ---
> >                   <font face="Verdana, Arial, Helvetica, sans-serif"
> size="1">Qmail-Scanner stopped <?PHP print($virus
> Count); ?> viruses since <?PHP print($virusDate); ?>.</font></td>
> 791c784
> <             2.0.2-AS-RC3</a> - Stats generated in
> ---
> >             2.0.2</a> - Stats generated in
> 
> 
> 
> -------------------------------------------------------
> 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
> 




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