[horde] aditional custom hooks...is it possible?

alex aferreira at gaiajoy.com
Wed Mar 29 09:52:53 PST 2006

I'm trying to develop a mail system with qmail style aliasing,  managed
through horde.
I've got the perl script that does it quite fine. I only need it to hook it
up with the imp prefs, namely 
This is my idea:
User puts an alias in the alias_addr field in the imp prefs.
The alias_addr is hooked up with the function _imp_hook_alias_addr in
hooks.php (registered as $conf['hooks']['alias_addr'] = true in imp's
This function checks the pair $UserID, alias against the alias stored in a
If it is available stores/updates the $UserID alias with the new one and
makes the exec() call to the perl script, otherwise returns an error.
My question is, can I make a custom hook like this one? Or is it impossible?
So far I've been unsucessfull. 
I don't know If the horde framework allows it, or if im doing it
Thanks in advance,

More information about the horde mailing list