From: "Brian Leyton" <[EMAIL PROTECTED]>
jdow wrote:
It defaults funkity. Run --help on it then set the start and stop
times to "yesterday" and "today".
{^_^}
It only gives me 2 options, -t and -y for today & yesterday, respectively.
I tried both of those, plus no option at all, to process the whole logfile
(which contains logs from 12/4 through today), and the result is the same.
Nothing.
Which version of SA did it come with? Three versions exist that all
behave differently. One is the version a fellow just posted a pointer
to, today. The other comes with SA. I am running 3.0.5 here and use
the version that came with 3.0.4 with edited default values. It was
not changed for 3.0.5, apparently. It gives these options:
===8<---
For more information, try perldoc sa-stats.pl
Usage:
Usage: sa-stats.pl [options]
Options:
-l, --logfile=filename logfile to read
(default: /var/log/maillog)
-s, --start Sets date/time for start of reporting period
-e, --end Sets date/time for end of reporting period
-u, --userstats Generates stats for the top spam victims
(default is 25; see -T)
-H, --html Generates HTML report
(default: plain text)
-T, --top=# Display top # spam victims
(# defaults to 25; -T implies -u)
-h, --help Displays this message
-V, --version Display version info
--mail=emailaddress Sends report to emailaddress
--sendmail=/path/to/sendmail Location of sendmail binary
(default: /usr/sbin/sendmail)
--from=emailaddress Sets From: field of mail
-v, --verbose Sets verbose mode (requires -D)
-D, --debug Sets debug mode
===8<---
The -s and -e defaults are the ones I changed.
The third is on the SARE site and is one I rather like. It gives:
===8<---
usage: /etc/mail/spamassassin/mysa-stats.pl [-l <dir>] [-f <file>] [-n <num>]
[-w]
--logdir|-l <dir> Directory containing spamd logs
--filename|-f <file> File names or regex to look for in the logdir
--num|-n <num> Number of top rules to display
--web|-w Make it web friendly output
--help|-h Prints this help
===8<---
It simply parses the whole maillog file or all the maillog files you specify.
It doesn't do dates.
{^_^}