[dev] suggestion...
marc@register4less.com
marc@register4less.com
Tue, 14 May 2002 12:05:38 -0400
I would like to submit this patch to the file 'imp/lib/Identity/IMP.php'
Basically, it gives priority to the Identity's FROM address over the user hook.
---------- cut here ---------------
RCS file: /repository/imp/lib/Identity/IMP.php,v
retrieving revision 1.12
diff -r1.12 IMP.php
144,147c144,149
< if (!empty($conf['hooks']['from']) &&
function_exists($conf['hooks']['from'])) {
< $val = call_user_func($conf['hooks']['from'], $imp);
< } elseif (empty($val)) {
< $val = $imp['user'];
---
> if (empty($val)) {
> if (!empty($conf['hooks']['from']) &&
function_exists($conf['hooks']['from'])) {
> $val = call_user_func($conf['hooks']['from'], $imp);
> } else {
> $val = $imp['user'];
> }
148a151
>