Attached my code for the Spamcheck matcher which uses the Spamassassin
installed at the same system. As I am not an experienced developer I took he
easy way and just put the spamcheck.java file in the source directory of my
local james directory. The standard build from james is then enough to be
able to use the matcher.
Configuring is done in the mailet in config.xml
<mailet match='SpamCheck=c:\utilities\perl\bin\spamassassin -e,c:\temp'
First : path to spamassassin.bat (including runtime options !)
Second : path to directory to put temporary files
Third : true : remove the temporary file aftercheck,
false leave the temporary file after check,
default = true