[imp] Problem with hook _prefs_hook_from_addr

Jan Schneider jan at horde.org
Fri Feb 15 23:30:47 UTC 2008


Then use Auth::getAuth() instead. See the other pref hook examples in  
hook.php.dist.

Zitat von soracchi at netbuilder.it:

> Hi,
>
> I have added the LOG:
> Horde::logMessage("USERNAME:".$user, __FILE__, __LINE__, PEAR_LOG_NOTICE);
>
> in the function _prefs_hook_from_addr.
>
> The variable $user is empty but my login is ok.
>
> This is the log:
>
> Feb 15 22:52:00 HORDE [notice] [] USERNAME: [pid 25677 on line 169 of
> "/srv/www/htdocs/horde/config/hooks.php"]
> Feb 15 22:52:00 HORDE [notice] [imp] USERNAME: [pid 25677 on line 169
> of "/srv/www/htdocs/horde/config/hooks.php"]
> Feb 15 22:52:00 HORDE [notice] [imp] USERNAME: [pid 25677 on line 169
> of "/srv/www/htdocs/horde/config/hooks.php"]
> Feb 15 22:52:01 HORDE [notice] [imp] Login success for myusername
> [localhost] to {myserver:143 [imap/notls]} [pid 25677 on line 298 of
> "/srv/www/htdocs/horde/imp/lib/Session.php"]
> Feb 15 22:52:01 HORDE [notice] [] USERNAME: [pid 25677 on line 169 of
> "/srv/www/htdocs/horde/config/hooks.php"]
> Feb 15 22:52:01 HORDE [notice] [] USERNAME: [pid 25677 on line 169 of
> "/srv/www/htdocs/horde/config/hooks.php"]
> Feb 15 22:52:01 HORDE [notice] [horde] USERNAME: [pid 25677 on line
> 169 of "/srv/www/htdocs/horde/config/hooks.php"]
> Feb 15 22:52:01 HORDE [notice] [horde] USERNAME: [pid 25677 on line
> 169 of "/srv/www/htdocs/horde/config/hooks.php"]
> Feb 15 22:52:01 HORDE [notice] [horde] USERNAME: [pid 25677 on line
> 169 of "/srv/www/htdocs/horde/config/hooks.php"]
> Feb 15 22:52:01 HORDE [notice] [turba] USERNAME: [pid 25677 on line
> 169 of "/srv/www/htdocs/horde/config/hooks.php"]
> Feb 15 22:52:01 HORDE [notice] [turba] USERNAME: [pid 25677 on line
> 169 of "/srv/www/htdocs/horde/config/hooks.php"]
> Feb 15 22:52:01 HORDE [notice] [turba] USERNAME: [pid 25677 on line
> 169 of "/srv/www/htdocs/horde/config/hooks.php"]
> Feb 15 22:52:01 HORDE [notice] [horde] USERNAME: [pid 25677 on line
> 169 of "/srv/www/htdocs/horde/config/hooks.php"]
> Feb 15 22:52:01 HORDE [notice] [] USERNAME: [pid 7338 on line 169 of
> "/srv/www/htdocs/horde/config/hooks.php"]
> Feb 15 22:52:02 HORDE [notice] [] USERNAME: [pid 25677 on line 169 of
> "/srv/www/htdocs/horde/config/hooks.php"]
> Feb 15 22:52:02 HORDE [notice] [] USERNAME: [pid 7338 on line 169 of
> "/srv/www/htdocs/horde/config/hooks.php"]
> Feb 15 22:52:03 HORDE [notice] [] USERNAME: [pid 7338 on line 169 of
> "/srv/www/htdocs/horde/config/hooks.php"]
>
> Any idea is appreciated.
>
> Thanks.
> Def. Quota Jan Schneider <jan at horde.org>:
>
>> Zitat von alois blasbichler <alois.blasbichler at sb-brixen.it>:
>>
>>> Quoting Jan Schneider <jan at horde.org>:
>>>
>>>> Zitat von Andrea Soracchi <soracchi at netbuilder.it>:
>>>>
>>>>> Hi,
>>>>> How can I check?
>>>>
>>>> How *did* you check it initially? You said it was always empty! You
>>>> could log the value with Horde::logMessage().
>>>
>>> Hello
>>>
>>> I have exactly the same problem. How do i log this value ?
>>> Where i have to write  Horde::logMessage() ? In hooks.php or in conf.php ?
>>> And how ?  Maybe :   horde::logMessage(_prefs_hook_from_addr)
>>
>> http://dev.horde.org/api/framework/Horde_Framework/Horde.html#logMessage
>>
>> You probably want to log the $user variable, so something along:
>>
>> Horde::logMessage($user, __FILE__, __LINE__);
>>
>> Jan.
>>
>> --
>> Do you need professional PHP or Horde consulting?
>> http://horde.org/consulting/
>>
>> --
>> IMP mailing list - Join the hunt: http://horde.org/bounties/#imp
>> Frequently Asked Questions: http://horde.org/faq/
>> To unsubscribe, mail: imp-unsubscribe at lists.horde.org
>>
>>
>
>
> --
> IMP mailing list - Join the hunt: http://horde.org/bounties/#imp
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org
>



Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the imp mailing list