[spambayes-bugs] [ spambayes-Feature Requests-1076595 ] Feature request: Windows dll/.net to use in other program

SourceForge.net noreply at sourceforge.net
Mon Dec 5 10:20:46 CET 2005


Feature Requests item #1076595, was opened at 2004-12-01 22:03
Message generated for change (Comment added) made by anadelonbrin
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498106&aid=1076595&group_id=61702

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
Priority: 5
Submitted By: Patric (likit)
Assigned to: Nobody/Anonymous (nobody)
Summary: Feature request: Windows dll/.net to use in other program

Initial Comment:
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

----------------------------------------------------------------------

>Comment By: Tony Meyer (anadelonbrin)
Date: 2005-12-05 22:20

Message:
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.

----------------------------------------------------------------------

Comment By: Tony Meyer (anadelonbrin)
Date: 2004-12-02 13:09

Message:
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.

----------------------------------------------------------------------

Comment By: Patric (likit)
Date: 2004-12-02 12:53

Message:
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... 

----------------------------------------------------------------------

Comment By: Tony Meyer (anadelonbrin)
Date: 2004-12-02 11:22

Message:
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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498106&aid=1076595&group_id=61702


More information about the Spambayes-bugs mailing list