Spam, Spam, Spam, Dole & Spam
seniorcoder writes "Check here for an article on CNN about the senate campaign of Elizabeth Dole being taken to court in North Carolina for the princely sum of $80 ($10 per piece of spam).
My best regards to Ken Pugh, I hope his action is successful." $10 per email sounds fair, now I can start planning my mansion.
I used gnuplot to graph and procmail to manage SA.
/g' \
/g' \
:0 c :0 ci :0fw /home/wellner/bin/SpamAssassin/spamassassin -P -c /home/wellner/bin/SpamAssassin/rules
/g' \
:0:
My procmailrc contains something like this:
LOGFILE=$HOME/procmail.logfile
SUBJECT=`formail -xSubject: \
| sed -e 's/[;\`\\]/
| expand | sed -e 's/^[ ]*//g' -e 's/[ ]*$//g'`
FROM=`formail -xFrom: \
| sed -e 's/[;\`\\]/
| expand | sed -e 's/^[ ]*//g' -e 's/[ ]*$//g'`
# Backup the last hundred messages.
backup
| cd backup && rm -f dummy `ls -t msg.* | sed -e 1,100d`
|
SPAM_STATUS=`grep X-Spam-Status |cut -d' ' -f3|cut -d'=' -f2 |sort -n`
MESSAGE_ID=`formail -xMessage-ID:: \
| sed -e 's/[;\`\\]/
| 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`
* ^X-Spam-Status: Yes
caughtspam
and my gnuplot file is:
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
have fun.