Brent--
I would very much like a script that copies spamassassin log entries dated yesterday from recent log files into a temp file, runs sa-stats against the temp file, and emails me the result every day.
Thanks for the offer!

jim shupert


Brent Gardner wrote:
Eric Shubert wrote:

I presume you're talking about the sa-stats script?
I don't use that much, but it appears that it only uses the current log file.

That's true. Running sa-stats without any options will process /var/log/qmail/spamd/current. Also, you can't pipe to it, but it will process an arbitrary file or files with names matching a regex. Check out sa-stats --help.

If anyone's interested, I have a script that copies spamassassin log entries dated yesterday from recent log files into a temp file, runs sa-stats against the temp file, and emails me the result every day.


Brent Gardner



--------------------------------------------------------------------------------- Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations.
     If you need professional help with your setup, contact them today!
--------------------------------------------------------------------------------- Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]




Reply via email to