[Tickets #961] hook_spam_bounce does not work.

bugs at bugs.horde.org bugs at bugs.horde.org
Thu Dec 9 04:54:51 PST 2004


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

Ticket URL: http://bugs.horde.org/ticket/?id=961
-----------------------------------------------------------------------
 Ticket     | 961
 Updated By | kurt.dillen at dls-belgium.com
 Summary    | hook_spam_bounce does not work.
 Queue      | IMP
 Version    | 4.0-RC3
 State      | Unconfirmed
 Priority   | 3. High
 Type       | Bug
 Owners     | 
-----------------------------------------------------------------------


kurt.dillen at dls-belgium.com (2004-12-09 04:54) wrote:

Works OK, with this code:  

           /* If a (not)spam bounce email address has been provided, use
             * it. */
            if (!empty($GLOBALS['conf'][$action]['bounce'])) {
                $to = $GLOBALS['conf'][$action]['bounce'];
            }
            if (!empty($GLOBALS['conf']['hooks']['spam_bounce'])) {
                /* Call the bounce email generation hook, if requested. */
                require_once HORDE_BASE . '/config/hooks.php';
                if (function_exists('_imp_hook_spam_bounce')) {
                    $to = call_user_func('_imp_hook_spam_bounce', $action);
                }
            }

Changed the elseif into an if and it worked perfect.  






More information about the bugs mailing list