Some just mentioned sa-stats.pl statistics, and I then wrote a script for me to 
post daily stats for me into email.

This is not nuclear science, but I still share it.

It is HTML formatted because I use Outlook Express to read mail, but it is easy 
to fix

The file is named so that it runs just before 00-logrotate in Debian Linux.

Non HTML version:

--------------- /etc/cron.daily/00a-sa-stats -----------------------
#!/bin/sh

/usr/local/bin/sa-stats.pl

--------------------------------------------------------------------

HTML version for GUI users

--------------- /etc/cron.daily/00a-sa-stats -----------------------
#!/bin/sh

FILE=/tmp/stats.mail

echo To: ja...@wellington>$FILE
echo Subject: SpamAssassin statistics>>$FILE
echo "Content-Type: text/html; charset=\"us-ascii\"">>$FILE
echo>>$FILE
/usr/local/bin/sa-stats.pl | /usr/bin/txt2html >>$FILE

/usr/sbin/sendmail ja...@wellington < $FILE
rm $FILE

--------------------------------------------------------------------

The HTML version requires txt2html program which is installable on Debian apt, 
and propably others too. If not, maybe cpan..

Sendmail command is available with sendmail and postfix emailers, dunno about 
others.

Reply via email to