Contents
Writing UserTests for AntiSpam (1)
Standard AntiSpam testing
UserTests -- A New Hope
The interface with AntiSpam
How to check your UserTests once you've written them
The four standard functions/procedures
Activating FNUserTest_DoTest
A brief summary
Understanding the parameters provided by AntiSpam
Checking for a given header
A simple example
Writing UserTests for AntiSpam (2)
Initialisation code
Whitelisting the contents of a Messenger address-book
Local and global variables
Filling the array
Setting relative test priorities
The User-Priority keyword
FNget_user_priority
Spam tests that operate across several headers
An AND rule
Writing UserTests for AntiSpam (3)
Using header$
Testing for capitals
Separating names and addresses
Detecting computer-generated addresses
Deleting advertisements
Catching spam words but not substrings
Putting it all together
Conclusion -- and a word of warning