[imp] Problem with hook _prefs_hook_from_addr

soracchi at netbuilder.it soracchi at netbuilder.it
Fri Feb 15 22:09:32 UTC 2008


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
>
>




More information about the imp mailing list