[Tickets #8968] blacklist: disable in mail view, enable in ingo

bugs at horde.org bugs at horde.org
Fri Apr 16 12:09:48 UTC 2010


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/8968
------------------------------------------------------------------------------
  Ticket             | 8968
  Created By         | frank.richter at hrz.tu-chemnitz.de
  Summary            | blacklist: disable in mail view, enable in ingo
  Queue              | Ingo
  Version            | 1.2.3
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


frank.richter at hrz.tu-chemnitz.de (2010-04-16 08:09) wrote:

Hi,
I'd like to do the following
  1. disable the blacklist/whitelist "buttons" in mail index and mail view
  2. keep  blacklist/whitelist enabled in ingo

In horde/config/registry.php I removed 'mail/blacklistFrom',  
'mail/whitelistFrom'
from provides for ingo. Result:
  1. ok
  2. blacklist/whitelist butons in ingo are visable, but not the function -
     "Blacklist is not supported in the current filtering driver."

Proposed fix in ingo/lib/Script.php:

-        if ($key !== false &&  
($registry->hasMethod('mail/blacklistFrom') != 'ingo')) {
             unset($this->_categories[$key]);
         }

         /* Determine if ingo should handle the whitelist. */
         $key = array_search(INGO_STORAGE_ACTION_WHITELIST,  
$this->_categories);
-        if ($key !== false &&  
($registry->hasMethod('mail/whitelistFrom') != 'ingo')) {
             unset($this->_categories[$key]);


+        if ($key !== false &&  
($registry->hasMethod('mail/showBlacklist') != 'ingo')) {
             unset($this->_categories[$key]);
         }

         /* Determine if ingo should handle the whitelist. */
         $key = array_search(INGO_STORAGE_ACTION_WHITELIST,  
$this->_categories);
+        if ($key !== false &&  
($registry->hasMethod('mail/showWhitelist') != 'ingo')) {
             unset($this->_categories[$key]);

Result:
  1. ok
  2. ok

Regards,
Frank






More information about the bugs mailing list