[horde] storing from addresses in session/preferences

Matus UHLAR - fantomas uhlar at fantomas.sk
Fri Jul 1 14:13:02 UTC 2011


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?

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

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.
I just got lost in thought. It was unfamiliar territory. 


More information about the horde mailing list