As it comes from the "factory":
# Configuration section
my %opt = ();
$opt{'logfile'} = '/var/log/maillog';        # Log file
$opt{'sendmail'} = '/usr/sbin/sendmail';    # Path to sendmail stub
$opt{'from'} = 'SpamAssassin System Admin';    # Who is the mail from
$opt{'end'} = "";
$opt{'start'} = "today";

As you had it:
# Configuration section
my %opt = ();
$opt{'logfile'} = '/var/log/maillog';        # 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";

Note the difference. The "factory" default options seem to give all
zeros. Your options work. You apparently got annoyed having to type in
the most used options so you edited the file to make them saner, I bet.
(Or you are using a version from some other distribution than 3.04.)

{^_-}
----- Original Message ----- 
From: "Chris" <[EMAIL PROTECTED]>
To: <users@spamassassin.apache.org>
Sent: 2005 August, 04, Thursday 04:28
Subject: Re: sa-stats.pl generates a zero report


On Wednesday 03 August 2005 10:11 pm, jdow wrote:
>
> Can't really remember where I picked it up from.
>
> <<jdow: I can. /usr/share/doc/spamassassin*/tools/sa-stats.pl
>   But it appears you changed the default settings which give the
>   null reports. (The userstats and topusers options on the latter
>   one don't SEEM to do anything, either.)
>
> {^_^}

I'm not getting the null reports, my output looks like this:

Report Title : SpamAssassin - Spam Statistics
Report Date : 2005-08-04
Period Beginning : Wed Aug 3 04:00:01 2005
Period Ending : Thu Aug 4 04:00:01 2005

Reporting Period : 24.00 hrs
--------------------------------------------------

Note: 'ham' = 'nonspam'

Total spam detected : 107 ( 60.80%)
Total ham accepted : 69 ( 39.20%)
-------------------
Total emails processed : 176 ( 7/hr)

Average spam threshold : 5.00
Average spam score : 26.28
Average ham score : -11.75


Reply via email to