Hi,
I have plan to build an messagefilter for our companys
exchange-server for spam-classified. I use spambayers
on clientside but i will have it on serverside so the
webaccess will process and filter spam/ham to right
folder.
I think that the dll/.net-class shuld have (3) functions
like
classifieMessage, processAsSpam, processAsHam
Best regards
Patric
Logged In: YES
user_id=552329
This thing about this is that SpamBayes is open-source, so
it's really trivial to just get the source and use it to
build what you want. The code is all well documented and
should be simple to understand - but the people on
spambayes-dev would probably be willing to help out anyway.
You probably want to start with the tokenizer.py and
classifier.py modules.
Logged In: YES
user_id=671964
My big problem to build the dll in python is that I can't the
python-language that I must learn me before I start...
Logged In: YES
user_id=552329
Python is *extremely* easy to learn, especially if you
already know another language.
The existing scripts probably have all the functions you
need, anyway, so you'd just have to pick the ones you want
and then write the appropriate py2exe script to create the dll.
Have you considered just running sb_xmlrpcserver.py and then
just sending messages to/from that? It would certainly be
simple, and has the advantage of using existing scripts and
keeping the SpamBayes state separate and alive across
filtering sessions (for speed). The sb_bnfilter/sb_bnserver
scripts (sb_bnserver is also implemented in C) do this sort
of thing, but without the XML RPC, but are *nix only.
Logged In: YES
user_id=552329
No response in a long time, so closing.
I don't believe py2exe can create dll's currently, so it
would be a lot of work to do this. There are many simple
ways to do this at the moment, e.g. with XML RPC as below,
which should suffice.