/Main_Page

::You must have ninja focus to complete your mission::NinjaFocus::

Test Spam

Views:


This is a script I use for testing new spam rules. You can throw you spam corpus at spamd and see how it scores the messages.

It expexts that you will have an environment variable call $spamd set, which is the ip address or hostname of the spamd server who's rules you want to test.

$ ./test-spam.sh ../blah/test-spam/*.eml
#!/bin/bash

[ -z "$spamd" ] && echo please set spamd enviroment variable to the ip/name of the spamd to use && exit 1

for mail in $@
do 
    echo -e "\n$mail\n"
    spamc -d $spamd -R < $mail
done

Main Menu

Personal tools

Toolbox