To compile:
gcc -o spamtestbuddy -s -O2 -Wall -pedantic spamtestbuddy.c

Copy the binary to your home directory. Before SpamTestBuddy does anything,
you have to create a .spamtestbuddy file in $HOME. This will define all
aspects of the scoring. See the sample-spamtestbuddy file for details.

At the very least, define
	SpamThreshold
	SkipReceived
	TestDnsProblems
	and at least another Tests (e.g. the result from an existing filter)

Try it out by reading an email from the command line:
./spamtestbuddy < message

You should see a new header, such as
X-SpamTestBuddy: OVER score=2.9075 threshold=1.5000 ip=60.18.212.53
        ver=0.91 match=+DNSPROBLEM +SPAMPROBE +ZEN

(In this example, SpamTestBuddy has picked up the 0.9075 score from
SpamProbe and added another 2 due to bad reverse dns, and the ZEN rbl).

Finally, install in .procmailrc with this simple recipe:

:0 wf
| $HOME/spamtestbuddy

This will add the new header (you should obviously run this after using
other software like SpamProbe). You can then do what you want with the
new header.
