[spambayes-bugs] [ spambayes-Feature Requests-940643 ] Add ham_folder option

SourceForge.net noreply at sourceforge.net
Thu Sep 30 07:01:42 CEST 2004


Feature Requests item #940643, was opened at 2004-04-23 23:18
Message generated for change (Comment added) made by anadelonbrin
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498106&aid=940643&group_id=61702

Category: imapfilter
Group: None
>Status: Closed
Priority: 5
Submitted By: pcm (michali)
Assigned to: Tony Meyer (anadelonbrin)
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),
>


----------------------------------------------------------------------

>Comment By: Tony Meyer (anadelonbrin)
Date: 2004-09-30 17:01

Message:
Logged In: YES 
user_id=552329

Added (roughly based on this patch) to CVS Head (i.e. for 1.1).

Thanks!

----------------------------------------------------------------------

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