[Tickets #10455] Re: Cannot disable available filter rules using Sieve
bugs at horde.org
bugs at horde.org
Wed Aug 24 19:39:55 UTC 2011
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/10455
------------------------------------------------------------------------------
Ticket | 10455
Updated By | jmDS at hampshire.edu
Summary | Cannot disable available filter rules using Sieve
Queue | Ingo
Version | 2.0.4
Type | Bug
State | Unconfirmed
Priority | 2. Medium
Milestone |
Patch | 1
Owners |
+New Attachment | patch.txt
------------------------------------------------------------------------------
jmDS at hampshire.edu (2011-08-24 19:39) wrote:
> I'm attempting to disable/remove all of the rules available by
> default in Ingo. In prefs.php, there are five preferences (one for
> each of whitelist, blacklist, forward, vacation, spam). Locking
> these is supposed to disable them and remove them from the filter
> list for the user.
>
> However, locking all five preferences only removes 'whitelist' and
> 'blacklist' from the filter list in Ingo. I believe that the reason
> for this is as follows:
>
> This functionality is provided in lib/Ingo.php on lines 70-85. It
> creates an array called $categories. Then, for each of the five
> preferences above, it attempts to remove that option from the
> categories array. I believe the problem is that it's unsetting the
> element in the array whose position is, for example,
> Ingo_Storage::ACTION_BLACKLIST instead of the element in the array
> whose value is Ingo_Storage::ACTION_BLACKLIST.
>
> On my Horde server, I replaced that code with the patch I've
> included, which produces the functionality I expect.
Here's the patch.
jmDS at hampshire.edu (2011-08-24 19:39) uploaded: patch.txt
http://bugs.horde.org/h/services/download/?module=whups&actionID=download_file&file=patch.txt&ticket=10455&fn=%2Fpatch.txt
More information about the bugs
mailing list