On Wednesday 03 August 2005 12:51 pm, Mike Pepe wrote:
> Hi all,
>
> Any pointers on how to make sa-stats.pl work?
>
> I ran it in debug mode and it's scanning the right log, but at the end I
> get a report with all zeros.
>
> Maybe I'm missing a perl module?
>
> sample report:
>
> Report Title : SpamAssassin - Spam Statistics
> Report Date : 2005-08-03
> Period Beginning : Wed 03 Aug 2005 01:46:29 PM EDT
> Period Ending : Thu 04 Aug 2005 01:46:29 PM EDT
>
> Reporting Period : 24.00 hrs
The sa-stats.pl I run works quite well, maybe your configuration is not quite
right? Below is mine:
# Configuration section
my %opt = ();
$opt{'logfile'} = '/var/log/mail/info'; # Log file
$opt{'sendmail'} = '/usr/sbin/sendmail'; # Path to sendmail stub
$opt{'from'} = 'SpamAssassin System Admin'; # Who is the mail from
$opt{'end'} = "today";
$opt{'start'} = "yesterday";
--
Chris
Registered Linux User 283774 http://counter.li.org
20:08:43 up 4:45, 3 users, load average: 5.98, 3.72, 2.17
Mandriva Linux 10.1 Official, kernel 2.6.8.1-12mdk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Where will it all end? Probably somewhere near where it all began.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~