[Tracker-discuss] spam auditor checked in

skip at pobox.com skip at pobox.com
Wed Jun 13 18:00:09 CEST 2007


    Roché> If you provide us with details, I can ask Izak to install the
    Roché> server for you.

It's only available from the SpamBayes CVS repository at the moment, so
you'll have to check that out:

 cvs -d:pserver:anonymous at spambayes.cvs.sourceforge.net:/cvsroot/spambayes login
 cvs -z3 -d:pserver:anonymous at spambayes.cvs.sourceforge.net:/cvsroot/spambayes co -P spambayes

(I'll talk with the other spambayes developers about cutting a new alpha
release.)

Then install it:

 python setup.py install

Devote a directory to it, e.g.:

 SBDIR=/usr/local/spambayes/core_server  # or whatever...
 mkdir -p $SBDIR

Create an INI file:

 cd $SBDIR
 cat > bayescustomize.ini <<EOF
[globals]
verbose:False

[Headers]
include_evidence:True
include_score:True

[Tokenizer]
record_header_absence:True
summarize_email_prefixes:True
summarize_email_suffixes:True
mine_received_headers:True
x-pick_apart_urls:True
x-fancy_url_recognition:False
x-lookup_ip:True
lookup_ip_cache:$SBDIR/dnscache.pck
max_image_size:100000
crack_image_cache:$SBDIR/imagecache.pck

crack_images:True
image_size:True
ocr_engine:gocr
[Classifier]
use_bigrams:False

[Categorization]
ham_cutoff:0.2
spam_cutoff:0.85

[Storage]
persistent_storage_file:$SBDIR/hammie.db
persistent_use_database:pickle
messageinfo_storage_file:$SBDIR/messageinfo.fs

[html_ui]
display_score:True
EOF

Finally, run it:

 BAYESCUSTOMIZE=$SBDIR/bayescustomize.ini core_server.py -m XMLRPCPlugin

Note that it creates both a web server (defaulting to localhost:8880) and an
XML-RPC server (defaulting to localhost:8001).  To manage the system we'll
have to allow broader access to the web server.  I suggest using Apache's
reverse proxy to limit access to a small set of users or hosts.  In drilling
into the port configuration code while writing this response I realize that
I'm not certain how to get the web server to listen to something other than
localhost, thought that should certainly be doable as well.  I'll have to
get back to you on that one. ;-) I don't recommend opening up the XML-RPC
server to anything other than localhost.

This will probably take us a couple days to get right, given the fact that
we are halfway round the world from each other, but it shouldn't be too
difficult.

Skip



More information about the Tracker-discuss mailing list