[dev] Redirecting the user based on which IMP folder was selected

Stuart Bingë s.binge at codefusion.co.za
Wed Mar 24 03:14:11 PST 2004


Hello all,

I'm wondering if there is a clean way for me to redirect the user based on 
which folder they clicked on in IMP.

As an example situation, say the user has a "Calendar" sub-folder, and clicks 
on this in IMP. What I would like to happen is instead of the user seeing the 
contents of this folder within IMP, that they rather be redirected to 
Kronolith.

With the Kolab server all the users' groupware data is stored in various IMAP 
folders, so we don't exactly want the users to be able to go directly into 
these folders and mess with them.

What I've done so far is add a hack in IMP's mailbox.php file; I check the 
value of $imp['mailbox'] and if it is equal to, say, "Calendar" I simply 
redirect the user to Kronolith. This may not be ideal, but it works for the 
moment.

Is there a better way to do this? Is functionality such as this even available 
in the current code?

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/


More information about the dev mailing list