[horde] storing from addresses in session/preferences

Jan Schneider jan at horde.org
Fri Jul 1 16:04:41 UTC 2011


Zitat von Matus UHLAR - fantomas <uhlar at fantomas.sk>:

> Hello,
>
> I'm currently using Horde webmail edition 1.2.9.
>
> I have a functions that fetch list of users' allowed from: addresses  
> for use with imp and ingo.
>
> Both horde and ingo support hook functions to fetch those addresses
> - _prefs_hook_from_addr defined in config/hooks.php
> - _ingo_hook_vacation_addresses in ingo/config/hooks.php
>
> Since a problem mentioned here some time ago, I fetch those  
> addresses in prefs.php too.
>
> However all these functions are called more times when an user is  
> logged in and I would like to prevent repeated fetching of those  
> addresses
> (they are fetched from different source)
>
> - can I simply store the from_addreses to $_SESSION[] and expect the  
> addresses will be preserved   across session?

Not across sessions. But during that session.

> - can I store the from_addresses in preferences, so the addresses    
> will be available in case their source is not? How to do this?

Probably not from a hook.

Jan.

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



More information about the horde mailing list