Assuming you're using spamd, and have syslogging ending up in /var/log/mail/info, and you're smart enough to deal with rotating logfiles, etc:

fgrep -c 'identified spam' /var/log/mail/info

for the number of spams identified and

fgrep -c 'clean message' /var/log/mail/info

for the number of non-spams identified.

The log message lines matched by those greps include the username the message was for too, if you're interested in that.

C

On Thu, 2002-01-17 at 20:49, Arrchie wrote:
Hi,
Can anyone give me pointers on how I could easily count the spam that is 
filtered by spam assassin.
Whether I can write a small perl script, or do some shell scripting or 
anything to basically increment a text file counter by one for each spam 
which is filtered.


Thanks
Arrchie


_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk


Reply via email to