[dev] IMP dynamic redirection

Stuart Bingë s.binge at codefusion.co.za
Mon Apr 5 03:08:21 PDT 2004


Hi guys,

Attached is a patch which implements the dynamic redirection scheme in IMP. As 
per the results of the discussion we had about this a couple of days ago my 
solution is done by using hooks. I've added two hooks - one is called when 
the user opens a mailbox and allows the user to be redirected based on the 
name of the folder opened, and the second allows a custom icon to be shown on 
a per-folder basis when viewing the folder list.

I've also included the necessary sections to config.xml to configure this 
functionality, as well as example hook functions to hook.php.dist to show how 
this can be used.

Feedback is appreciated - this is my first experience in using Horde hooks so 
it may be horribly wrong :-) Specifically, I'm not sure whether my 
redirection code in mailbox.php is in the correct place; this is just where I 
used to have my old hard-coded hack, and it seems to work just fine.

Cheers,

-- 
Stuart Bingë
Code Fusion cc.

Office: +27 11 673 0411
Mobile: +27 83 298 9727
Email: s.binge at codefusion.co.za

Tailored email solutions; Kolab specialists.
http://www.codefusion.co.za/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: imp-dynamic-redirection.patch
Type: text/x-diff
Size: 5309 bytes
Desc: not available
Url : http://lists.horde.org/archives/dev/attachments/20040405/0c9247f1/imp-dynamic-redirection.bin


More information about the dev mailing list