Steve Yuroff <[EMAIL PROTECTED]> writes:

> Does SA keep stats on what it's doing?  IE- 73 of the last 100
> messages were flagged as spam, average score=5.3.  Processed 300
> messages in the last 24 hours.... stuff like that.
> 
> How might I go about getting this info from it?

It doesn't do this in the base product, but I've a couple things that
work in procmail if you are interested (look below).

You can see the results this produces at (I only started using this on
non-filtered mail on 4/09)
http://wellner.org/~wellner/email-scores.png

rw2

lines to add to .procmailrc
----------------
:0fw
| /home/wellner/bin/SpamAssassin/spamassassin -P -c 
|/home/wellner/bin/SpamAssassin/rules

SPAM_STATUS=`grep X-Spam-Status |cut -d' ' -f3|cut -d'=' -f2 |sort -n`
MESSAGE_ID=`formail -xMessage-ID:: \
| sed -e 's/[;\`\\]/ /g' \
| expand | sed -e 's/^[ ]*//g' -e 's/[ ]*$//g'` 

DATE=`date +"%m/%d/%y %H:%M"`
nada=`echo $DATE $SPAM_STATUS $MESSAGE_ID >> $HOME/email-scores`
----------------

You can use the following with gnuplot to create the plot shown above
----------------
set timefmt "%m/%d/%y %H:%M"
set format x "%m/%d"
set title "Distribution of spam values"
set xlabel "Date mail arrived"
set ylabel "Hit value"
set nolabel
set xdata time
set terminal png color
set yrange [-10:50]
plot '/home/wellner/email-scores' using 1:3 with points 20, 5 with lines 3, 7 with 
lines 7, 10 with lines 5
----------------

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

Reply via email to