From montanaro at users.sourceforge.net Sat Feb 9 21:29:05 2008 From: montanaro at users.sourceforge.net (montanaro at users.sourceforge.net) Date: Sat, 09 Feb 2008 12:29:05 -0800 Subject: [Spambayes-checkins] SF.net SVN: spambayes: [3170] trunk/spambayes/scripts/sb_imapfilter.py Message-ID: Revision: 3170 http://spambayes.svn.sourceforge.net/spambayes/?rev=3170&view=rev Author: montanaro Date: 2008-02-09 12:29:05 -0800 (Sat, 09 Feb 2008) Log Message: ----------- patch from Dave Abrahams - SF #1653494 - fixes problems with IMAP recent command Modified Paths: -------------- trunk/spambayes/scripts/sb_imapfilter.py Modified: trunk/spambayes/scripts/sb_imapfilter.py =================================================================== --- trunk/spambayes/scripts/sb_imapfilter.py 2007-11-07 02:02:54 UTC (rev 3169) +++ trunk/spambayes/scripts/sb_imapfilter.py 2008-02-09 20:29:05 UTC (rev 3170) @@ -732,10 +732,13 @@ response = self.imap_server.recent() data = self.imap_server.check_response("recent", response) if data[0] is not None: + if options["globals", "verbose"]: + print "[imapfilter] found saved message %s in iteration" % self.uid, i break else: - self.imap_server.print_log() - raise BadIMAPResponseError("recent", "Cannot find saved message") + if options["globals", "verbose"]: + print "[imapfilter] can't find saved message after 100 iterations:", self.uid + # raise BadIMAPResponseError("recent", "Cannot find saved message") # We need to update the UID, as it will have changed. # Although we don't use the UID to keep track of messages, we do @@ -872,14 +875,17 @@ msg.setId(mo.group(1)) break else: - msg.setId(self._generate_id()) + newid = self._generate_id() + if options["globals", "verbose"]: + print "[imapfilter] saving %s with new id:" % msg.uid, newid + msg.setId(newid) # Unfortunately, we now have to re-save this message, so that # our id is stored on the IMAP server. The vast majority of # messages have Message-ID headers, from what I can tell, so # we should only rarely have to do this. It's less often than # with the previous solution, anyway! - msg = msg.get_full_message() - msg.Save() + # msg = msg.get_full_message() + # msg.Save() if options["globals", "verbose"]: sys.stdout.write(".") @@ -954,7 +960,11 @@ count["spam"] = 0 count["unsure"] = 0 for msg in self: - if msg.GetClassification() is None: + cls = msg.GetClassification() + if cls is None or hamfolder is not None: + if options["globals", "verbose"]: + print "[imapfilter] classified as %s:"%cls, msg.uid + msg = msg.get_full_message() if msg.could_not_retrieve: # Something went wrong, and we couldn't even get @@ -962,7 +972,11 @@ # Annoyingly, we'll try to do it every time the # script runs, but hopefully the user will notice # the errors and move it soon enough. + + if options["globals", "verbose"]: + print "[imapfilter] could not retrieve:", msg.uid continue + (prob, clues) = classifier.spamprob(msg.tokenize(), evidence=True) # Add headers and remember classification. @@ -973,16 +987,26 @@ cls = msg.GetClassification() if cls == options["Headers", "header_ham_string"]: if hamfolder: + if options["globals", "verbose"]: + print "[imapfilter] moving to ham folder:", msg.uid msg.MoveTo(hamfolder) # Otherwise, we leave ham alone. count["ham"] += 1 elif cls == options["Headers", "header_spam_string"]: + if options["globals", "verbose"]: + print "[imapfilter] moving to spam folder:", msg.uid msg.MoveTo(spamfolder) count["spam"] += 1 else: + if options["globals", "verbose"]: + print "[imapfilter] moving to unsure folder:", msg.uid msg.MoveTo(unsurefolder) count["unsure"] += 1 msg.Save() + else: + if options["globals", "verbose"]: + print "[imapfilter] already classified:", msg.uid + return count @@ -1032,13 +1056,23 @@ def Filter(self): assert self.imap_server, "Cannot do anything without IMAP server." if not self.spam_folder: - self.spam_folder = IMAPFolder(options["imap", "spam_folder"], - self.imap_server, self.stats) + spam_folder_name = options["imap", "spam_folder"] + if options["globals", "verbose"]: + print "[imapfilter] spam folder:", spam_folder_name + self.spam_folder = IMAPFolder( + spam_folder_name, self.imap_server, self.stats) + if not self.unsure_folder: - self.unsure_folder = IMAPFolder(options["imap", - "unsure_folder"], - self.imap_server, self.stats) + unsure_folder_name = options["imap", "unsure_folder"] + if options["globals", "verbose"]: + print "[imapfilter] unsure folder:", unsure_folder_name + self.unsure_folder = IMAPFolder( + unsure_folder_name, self.imap_server, self.stats) + ham_folder_name = options["imap", "ham_folder"] + if options["globals", "verbose"]: + print "[imapfilter] ham folder:", ham_folder_name + if ham_folder_name and not self.ham_folder: self.ham_folder = IMAPFolder(ham_folder_name, self.imap_server, self.stats) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From montanaro at users.sourceforge.net Sun Feb 10 14:38:09 2008 From: montanaro at users.sourceforge.net (montanaro at users.sourceforge.net) Date: Sun, 10 Feb 2008 05:38:09 -0800 Subject: [Spambayes-checkins] SF.net SVN: spambayes: [3171] trunk/website/index.ht Message-ID: Revision: 3171 http://spambayes.svn.sourceforge.net/spambayes/?rev=3171&view=rev Author: montanaro Date: 2008-02-10 05:38:09 -0800 (Sun, 10 Feb 2008) Log Message: ----------- add download table to beginning of front page Modified Paths: -------------- trunk/website/index.ht Modified: trunk/website/index.ht =================================================================== --- trunk/website/index.ht 2008-02-09 20:29:05 UTC (rev 3170) +++ trunk/website/index.ht 2008-02-10 13:38:09 UTC (rev 3171) @@ -3,6 +3,123 @@ Author: SpamBayes +

SpamBayes Downloads

+ +

Locate the row which contains your operating system and mail program to +see which version of SpamBayes is right for you. If you can test any of the +configurations, please let us +know. Note that installing +a source release is more involved than the binary releases.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Mail ProgramOperating SystemStable ReleaseTest ReleaseNotes
Outlook 2000/2003/2007Windows XP1.0.41.1a4 
Outlook 2003/2007Windows Vista1.0.41.1a4 
Outlook ExpressWindows XP1.0.41.1a4 
Windows Live MailWindows Vista1.0.41.1a4Untested. It should work at least as well as Outlook Express though.
OtherWindows XP/Vista 1.1a4 (source)Source code for the rest of the Windows world.
IncrediMailWindows XP/Vista 1.1a4 (source)Completely untested. May work with POP3. Rudimentary IMAP support may prevent that protocol.
ThunderbirdAny ThunderbayesTighter integration similar to Outlook plugin. Uses 1.0.4.
GmailAny 1.1a4 (source)POP3 works. IMAP maybe (untested).
Yahoo! MailAny 1.1a4 (source)Completely untested. POP3 & IMAP?
MSN HotmailAny 1.1a4 (source)Completely untested. POP3 & IMAP?
AOL MailAny 1.1a4 (source)Completely untested. IMAP only?
AnyMac OS X/Linux/Solaris 1.1a4 (source)POP3/IMAP, etc.
+

News

SpamBayes 1.0.4 is now available! (This includes both the source archives and a Windows binary installer).

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From montanaro at users.sourceforge.net Sun Feb 10 15:53:42 2008 From: montanaro at users.sourceforge.net (montanaro at users.sourceforge.net) Date: Sun, 10 Feb 2008 06:53:42 -0800 Subject: [Spambayes-checkins] SF.net SVN: spambayes: [3172] trunk/website/index.ht Message-ID: Revision: 3172 http://spambayes.svn.sourceforge.net/spambayes/?rev=3172&view=rev Author: montanaro Date: 2008-02-10 06:53:42 -0800 (Sun, 10 Feb 2008) Log Message: ----------- include binary link Modified Paths: -------------- trunk/website/index.ht Modified: trunk/website/index.ht =================================================================== --- trunk/website/index.ht 2008-02-10 13:38:09 UTC (rev 3171) +++ trunk/website/index.ht 2008-02-10 14:53:42 UTC (rev 3172) @@ -58,8 +58,10 @@ Other Windows XP/Vista   -1.1a4 (source) -Source code for the rest of the Windows world. +1.1a4 (binary)
+1.1a4 (source) +Source code for the rest of the Windows world. (Binary installer also - +might work in some circumstances.) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From montanaro at users.sourceforge.net Sun Feb 10 15:54:18 2008 From: montanaro at users.sourceforge.net (montanaro at users.sourceforge.net) Date: Sun, 10 Feb 2008 06:54:18 -0800 Subject: [Spambayes-checkins] SF.net SVN: spambayes: [3173] trunk/website/index.ht Message-ID: Revision: 3173 http://spambayes.svn.sourceforge.net/spambayes/?rev=3173&view=rev Author: montanaro Date: 2008-02-10 06:54:17 -0800 (Sun, 10 Feb 2008) Log Message: ----------- more readable Modified Paths: -------------- trunk/website/index.ht Modified: trunk/website/index.ht =================================================================== --- trunk/website/index.ht 2008-02-10 14:53:42 UTC (rev 3172) +++ trunk/website/index.ht 2008-02-10 14:54:17 UTC (rev 3173) @@ -3,7 +3,7 @@ Author: SpamBayes -

SpamBayes Downloads

+

Download SpamBayes

Locate the row which contains your operating system and mail program to see which version of SpamBayes is right for you. If you can test any of the This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. From montanaro at users.sourceforge.net Mon Feb 18 14:46:23 2008 From: montanaro at users.sourceforge.net (montanaro at users.sourceforge.net) Date: Mon, 18 Feb 2008 05:46:23 -0800 Subject: [Spambayes-checkins] SF.net SVN: spambayes: [3174] trunk/website/faq.txt Message-ID: Revision: 3174 http://spambayes.svn.sourceforge.net/spambayes/?rev=3174&view=rev Author: montanaro Date: 2008-02-18 05:46:22 -0800 (Mon, 18 Feb 2008) Log Message: ----------- Note the DEP/Outlook trick should work on Core 2 Duo processors. Modified Paths: -------------- trunk/website/faq.txt Modified: trunk/website/faq.txt =================================================================== --- trunk/website/faq.txt 2008-02-10 14:54:17 UTC (rev 3173) +++ trunk/website/faq.txt 2008-02-18 13:46:22 UTC (rev 3174) @@ -1581,9 +1581,9 @@ After installing SpamBayes, Outlook crashes and then asks for the plug-in to be disabled. ----------------------------------------------------------------------------------------- -Are you using an Athlon 64 with DEP? There are issues with DEP and Outlook -with a SpamBayes-based plug-in. Listing Outlook as a safe application on -an Athlon 64 should "solve" the problem. +Are you using an Athlon 64 or Core 2 Duo with DEP? There are issues with +DEP and Outlook with a SpamBayes-based plug-in. Listing Outlook as a safe +application on these processors should "solve" the problem. Development This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.