> > >
> > > Is it just my site or does this script seem to more than double
the
> > number
> > > of Ham messages processed. If I run the script I get 4385 HAM, if
I
> > run
> > > grep "clean message" /var/log/maillog | wc -l I get 2054.
Running
> > a
> > > grep for stat=Sent only shows 2636 messaged delivered.
> > >
> > > Am I missing something? I'm not very good with perl at all,
otherwise
> > I'd
> > > try to figure it out myself.
> > >
> > > Thanks
> > > Andy
> > >
> >
> > Instead, try
> > grep "clean message" /var/log/maillog*
> >
> > the parser looks at all maillog.* files also
> >
> > dallas
> >
> >
>
> grep shows 2094 for both /var/log/maillog and /var/log/maillog*
Damn, your right. This one line patch will fix it.
--- sa-stats.txt.old 2004-07-21 14:03:41.000000000 -0500
+++ sa-stats.txt 2004-07-21 14:03:50.000000000 -0500
@@ -68,6 +68,7 @@
$HAM_SEC+=$scantime;
}
$EMAIL_SEC+=$scantime;
+ next;
}
else {
next;
Its been updated at http://www.rulesemporium.com/programs/sa-stats.txt
Thanks,
Dallas