[Spambayes] suggestion: sb_server.py to score messages via filesockets

Kenny Pitt kennypitt at hotmail.com
Thu Aug 19 19:26:44 CEST 2004


Antoine Boulart wrote:
> So I was thinking; since sb_server.py is running anyway with a copy
> of the training data in memory, why can't it also be used to score
> messages? It could do that via a Unix file socket, which is fed the
> message text each time there's something to be scored. This is an
> approach SpamAssassin uses.    

IMHO, this probably wouldn't be an appropriate architecture.  sb_server is a
client-side program, while procmail is server-side.  There could be many
different clients talking to the same mail server, so which one would you
contact for classification, and how would you know that the user was logged
in and had sb_server running?

It sounds like what you want is a server-side process to keep the training
data open, and a version of sb_filter that would access that.  If you're
using sb_filter, you're obviously already running from source, so take a
look at the sb_bnserver and sb_bnfilter scripts in the same directory.  I'm
not personally very familiar with these, but I think they may do what you're
looking for.

-- 
Kenny Pitt



More information about the Spambayes mailing list