[imp] Attachment.php send download notification to wrong email address
eugenio vota
eugenio.vota at arpnet.it
Mon Jun 26 03:06:07 PDT 2006
Hi everybody,
installing Horde 3.1.1 and IMP 4.1.2,
I found that the notification message sent by attachment.php,
for each linked attachment downloaded for the first time,
is addressed to a wrong email address.
This (I suppose) because I'm using the _prefs_hook_from_addr to set email address from LDAP server,
so the variable $mail_user doesn't match the real email address but only the uid attribute.
Successfully now I tried to patch the code to find the right address by hook
inserting at row 91 something like this
require_once HORDE_BASE . '/config/hooks.php';
$mail_addr='';
if (function_exists('_prefs_hook_from_addr')) {
$email=call_user_func('_prefs_hook_from_addr', $mail_user);
}
if ( ! $mail_addr) { $email = $GLOBALS['conf']['problems']['email'] ;}
Anyone knows if there is a better way to do this.
Thanks a lot.
Bye.
More information about the imp
mailing list