6.0.0-alpha12
6/12/25

[#961] hook_spam_bounce does not work.
Summary hook_spam_bounce does not work.
Queue IMP
Queue Version 4.0-RC3
Type Bug
State Not A Bug
Priority 3. High
Owners slusarz (at) horde (dot) org
Requester kurt.dillen (at) dls-belgium (dot) com
Created 12/09/2004 (7490 days ago)
Due
Updated 12/09/2004 (7490 days ago)
Assigned 12/09/2004 (7490 days ago)
Resolved 12/09/2004 (7490 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
12/09/2004 03:34:25 PM Michael Slusarz Comment #3
State ⇒ Not A Bug
Reply to this comment
no, this is the correct behavior.  You can't have anything in the 
'bounce' config field if you want to use the spam bounce hook.  I've 
added a bit of documentation to conf.xml to try to make this a bit 
clearer.
12/09/2004 01:07:42 PM Jan Schneider Assigned to Michael Slusarz
State ⇒ Assigned
 
12/09/2004 12:54:50 PM kurt (dot) dillen (at) dls-belgium (dot) com Comment #2 Reply to this comment
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.




12/09/2004 12:47:07 PM kurt (dot) dillen (at) dls-belgium (dot) com Comment #1
State ⇒ Unconfirmed
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ hook_spam_bounce does not work.
Queue ⇒ IMP
Reply to this comment
I have configured imp to use with the spam_bounce hook for dspam after 
installing RC3 this did not work anymore.  After a compare I found the 
problem:



Code from RC2:



             /* If a (not)spam bounce email address has been provided, use

              * it. */

             if (!empty($GLOBALS['conf'][$action]['bounce'])) {

                 $to = $GLOBALS['conf'][$action]['bounce'];



                 /* Call the bounce email generation hook, if requested. */

                 if (!empty($GLOBALS['conf']['hooks']['spam_bounce'])) {

                     require_once HORDE_BASE . '/config/hooks.php';

                     if (function_exists('_imp_hook_spam_bounce')) {

                         $to = call_user_func('_imp_hook_spam_bounce', 
$action);

                     }

                 }



Code from RC3 Not Working!!!:



             /* If a (not)spam bounce email address has been provided, use

              * it. */

             if (!empty($GLOBALS['conf'][$action]['bounce'])) {

                 $to = $GLOBALS['conf'][$action]['bounce'];

             } elseif (!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);

                 }

             }



Please solve this because I really like the feature.




Saved Queries