[imp] Multiple IMAP servers / select server by hook
Jan Schneider
jan at horde.org
Wed Sep 4 09:22:25 UTC 2013
Zitat von Michael Dawart <md at neuewerte.de>:
> Dear List,
>
> I found some posts regarding the dynamic selection of IMAP server in
> the imp mailing archives. It is a little confusing for me. Somebody
> wrote that there is an example in the hooks on how to dynamically
> change the imap server on login.
>
> In the hooks.php.dist I found the description of the preauthenticate
> and applied it to the example from the wiki
> http://wiki.horde.org/ImapSelect
>
> But it seems as the new version does not use $_SESSION['imp'][$key]
> variable to store the server name etc. For me it looks as you have to
> use a kind of IMAP Server object.
> Unfortunately I did not found anything on how to set / modify server
> name instead, can you give me a hint?
>
> I'm using this versions:
> Horde Horde (horde) 5.1.2
> Webmail Webmail (imp) 6.1.3
>
> Thank you very much,
>
> Yours, Michael
The hooks.php.dist examples shows how to return the server key. There
isn't even any mentioning of $_SESSION.
--
Jan Schneider
The Horde Project
http://www.horde.org/
More information about the imp
mailing list