[horde] storing from addresses in session/preferences
Matus UHLAR - fantomas
uhlar at fantomas.sk
Mon Jul 4 15:15:55 UTC 2011
>Zitat von Matus UHLAR - fantomas <uhlar at fantomas.sk>:
>>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?
On 01.07.11 18:04, Jan Schneider wrote:
>Not across sessions. But during that session.
Oh, wrong wording.
So, would pushing the value to $_SESSION work as I expect?
>>- 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.
And what about prefs.php? According to an advise, I was able to modify
it to work with array of predefined addresses.
Is there any (easy) way to put the array to preferences?
Thank you
--
Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
If Barbie is so popular, why do you have to buy her friends?
More information about the horde
mailing list