6.0.0-alpha14
7/3/25

[#10801] spam [un]learn
Summary spam [un]learn
Queue IMP
Queue Version Git master
Type Enhancement
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester rsalmon (at) mbpgroup (dot) com
Created 11/25/2011 (4969 days ago)
Due
Updated 08/29/2012 (4691 days ago)
Assigned
Resolved 12/20/2011 (4944 days ago)
Milestone
Patch Yes

History
08/29/2012 12:26:47 PM Git Commit Comment #6 Reply to this comment
Changes have been made in Git (master):

commit 44325f555a7ca9c3d91d117072a568c218d16574
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Mon Dec 19 22:12:17 2011 -0700

     [mms] Added 'mbox_special' hook (Request #10801; rsalmon@mbpgroup.com).

  imp/config/hooks.php.dist |   16 ++++++++++++++++
  imp/docs/CHANGES          |    1 +
  imp/docs/UPGRADING        |    7 +++++++
  imp/lib/Mailbox.php       |   29 +++++++++++++++++++++++++----
  4 files changed, 49 insertions(+), 4 deletions(-)

http://git.horde.org/horde-git/-/commit/44325f555a7ca9c3d91d117072a568c218d16574
12/20/2011 05:28:56 AM Michael Slusarz Comment #5
Assigned to Michael Slusarz
State ⇒ Resolved
Reply to this comment
Added to IMP 5.1.  Patch was reworked due to internal changes from IMP 5.0.x.
12/20/2011 03:20:21 AM Michael Slusarz Deleted Original Message
 
12/16/2011 01:05:01 PM rsalmon (at) mbpgroup (dot) com Comment #4
New Attachment: specialfoldersv2.patch Download
Reply to this comment
tweak
12/16/2011 11:02:16 AM rsalmon (at) mbpgroup (dot) com Comment #3
New Attachment: specialfolders.patch
Reply to this comment
2. Supply a patch that allows a user to define special mailboxes via a hook.
I opted for the 2 option which could be used by anyone and for any purpose.

attached is a patch that allows anyone to mark folders as special folders.


11/27/2011 08:47:08 PM Michael Slusarz Comment #2
State ⇒ Rejected
Reply to this comment
This is **very** spam-assassin specific, and requires quite a bit of 
configuration on the server to make viable.  It does not seem 
appropriate to add a configuration option for such a service that will 
not work for anyone without significant behind-the-scenes work.  (In 
other words, this is too big of a hack to put into the mainline code).

Two thoughts instead:
1. Put this code on a wiki page.
2. Supply a patch that allows a user to define special mailboxes via a hook.
11/25/2011 09:17:08 AM rsalmon (at) mbpgroup (dot) com Comment #1
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ spam [un]learn
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ Yes
New Attachment: spamlearn.patch Download
State ⇒ New
Reply to this comment
over here, we use sa-learn from spamassassin to improve detecting spam 
messages.

I've added 2 special folders to all mailboxes SpamLearn and SpamUnLearn.

When ever a user receives a (spam/not spam) message that has[n't] been 
detected as such, he moves that message into the appropriate folder 
(SpamLearn/SpamUnLearn).

We have then a script on the server (that run once in a while) that 
goes through all SpamLearn (sa-learn --spam) and SpamUnLearn (sa-learn 
--ham) folders.


attached is a patch that allow SpamLearn and SpamUnLearn to be 
detected as special folders and therefore displayed first. This is 
only useful if using DIMP as IMP doesn't have special folders 
displayed first.


Saved Queries