[Spambayes] Win32 Command Line
joshua at waetech.com
Thu Oct 7 23:01:35 CEST 2004
> -----Original Message-----
> From: Tony Meyer [mailto:tameyer at ihug.co.nz]
> Sent: Thursday, October 07, 2004 4:50 PM
> > I've been trying to find a way to run SpamBayes from the
> command line
> > against "raw" email files on Windows Server 2003. Obviously, I'm
> > trying to integrate this with a mail server. Does anybody have any
> > experience with this or suggestions on where I can find more
> > information? My initial searches have come up empty handed.
> You need to be running from source, and the sb_filter script
> is probably a good place to start.
> You may wish to read: <http://spambayes.org/server_side.html>.
Thanks for the read. Most of the material is for *nix in that link. I
spent a considerable amount of the afternoon trying to make everything work
from the command line. After making every conceivable newbie error in the
book, I did manage to make it do something. Eventually, I tried to use
sb_mboxtrain.py, and then encountered an error that I think is a killer...
ImportError: No module named fcntl
I did some research on the web and it seems that the module isn't available
on Windows... Ut oh! If I could use the database created by my Outlook
plugin then I'd be ok, but I don't think that'd work.
sp_filter.py doesn't throw that error, but doesn't seem to work quite right
either. I have a known spam on my disk called spam1.mai and I've tried the
sb_filter.py | type spam1.mai
Error: bsddb._db.DBNoSuchFileError: (2, 'No such file or directory')
I'm sure it has something to do with the configuration, but I don't know
where to start... I've followed (I hope) all the install instructions.
Is there a step-by-step reference specifically for Windows command line
training and scoring? If not I'll happily write one at the end of this
Web Application Engineer
WAE Tech Inc.
More information about the Spambayes