[spambayes-bugs] [ spambayes-Feature Requests-940643 ] Add
ham_folder option
SourceForge.net
noreply at sourceforge.net
Fri Apr 23 07:18:15 EDT 2004
Feature Requests item #940643, was opened at 2004-04-23 07:18
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498106&aid=940643&group_id=61702
Category: None
Group: None
Status: Open
Priority: 5
Submitted By: pcm (michali)
Assigned to: Nobody/Anonymous (nobody)
Summary: Add ham_folder option
Initial Comment:
It would be nice to have a ham_folder option,
especially for the IMAP mode, so that classified ham is
moved to that folder.
Here are diffs for a simple hack that I did, which
"seems" to work for me (made to 1.0b1).
sb_imapfilter.py:
683c683
< def Filter(self, classifier, spamfolder,
unsurefolder):
---
> def Filter(self, classifier, hamfolder,
spamfolder, unsurefolder):
699c699
< # we leave ham alone
---
> msg.MoveTo(hamfolder)
712a713
> self.ham_folder = IMAPFolder(options["imap",
"ham_folder"])
765c766,767
< # Select the spam folder and unsure folder to
make sure they exist
---
> # Select the ham, spam, and unsure folders to
make sure they exist
> imap.SelectFolder(self.ham_folder.name)
773,774c775,776
< subcount = folder.Filter(self.classifier,
self.spam_folder,
< self.unsure_folder)
---
> subcount = folder.Filter(self.classifier,
self.ham_folder,
> self.spam_folder,
self.unsure_folder)
Options.py:
1050a1051,1054
> ("ham_folder", "Folder for ham messages", "",
> """""",
> IMAP_FOLDER, DO_NOT_RESTORE),
>
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498106&aid=940643&group_id=61702
More information about the Spambayes-bugs
mailing list