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>. =Tony Meyer --- Please always include the list (spambayes@python.org) in your replies (reply-all), and please don't send me personal mail about SpamBayes. This way, you get everyone's help, and avoid a lack of replies when I'm busy.
-----Original Message----- From: Tony Meyer [mailto:tameyer@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>.
Tony, 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 following: 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 tirade. Thoughts? <><><><><><><><><><> Joshua Olson Web Application Engineer WAE Tech Inc. http://www.waetech.com/service_areas/ 706.210.0168
Hi Joshua, I came across this thread while doing some research on how to integrate the SpamBayes filter with a Win32 application. If you have written the step by step guide you mentioned in one of your messages, I'd love to read it. If not, any pointers you can give me about your experiences would be welcome. Thanks, Manoj Ku.
participants (3)
-
Joshua Olson -
manoj.ku -
Tony Meyer