| 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 (7638 days ago) |
| Due | |
| Updated | 12/09/2004 (7638 days ago) |
| Assigned | 12/09/2004 (7638 days ago) |
| Resolved | 12/09/2004 (7638 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | No |
State ⇒ Not A Bug
'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.
State ⇒ Assigned
/* 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.
State ⇒ Unconfirmed
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ hook_spam_bounce does not work.
Queue ⇒ IMP
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.