[imp] Fwd: Multiple IMAP servers / select server by hook

Michael Dawart md at neuewerte.de
Thu Sep 5 09:02:36 UTC 2013


Dear Jan,

thank you for this hint. But in this imp hook file there is even a
remark that I won't be able to change the server (key) within this
hook:

[..]
The following credentials will exist in $credentials, but changing
these values has no effect on authentication: imp_server_key:(string;
'authenticate' only) The backend server key selected on the login
page.
[..]

So any idea on how to solve the problem to select the IMAP server
based on the user login?

Yours, Michael


2013/9/4 Jan Schneider <jan at horde.org>:
>
> Zitat von Michael Dawart <md at neuewerte.de>:
>
>> Dear Jan,
>>
>> this is the same I looked up. But I did not find any possibility there
>> to change the server (key) to be used for IMAP auth / login.
>> Do you have any hint for me?
>>
>> Yours, Michael
>>
>>
>> 2013/9/4 Jan Schneider <jan at horde.org>:
>>>
>>>
>>> Zitat von Michael Dawart <md at neuewerte.de>:
>>>
>>>> Dear Jan,
>>>>
>>>> Which hooks.php.dist are you referring to?
>>>> https://github.com/horde/horde/blob/master/horde/config/hooks.php.dist
>>>>
>>>> Maybe you got me wrong. I do not want to find out which server the
>>>> user choose but to automatically choose the server by the username.
>>>> Thats why I thought the example from the wiki
>>>> http://wiki.horde.org/ImapSelect could be a basis.
>>>>
>>>> Yours, Michael
>>>>
>>>>
>>>> 2013/9/4 Jan Schneider <jan at horde.org>:
>>>>>
>>>>>
>>>>>
>>>>> 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/
>>>>>
>>>>> --
>>>>> imp mailing list
>>>>> Frequently Asked Questions: http://wiki.horde.org/FAQ
>>>>> To unsubscribe, mail: imp-unsubscribe at lists.horde.org
>>>
>>>
>>>
>>> https://github.com/horde/horde/blob/master/imp/config/hooks.php.dist
>>>
>>> --
>>> Jan Schneider
>>> The Horde Project
>>> http://www.horde.org/
>
>
> It's not
>
> --
> Jan Schneider
> The Horde Project
> http://www.horde.org/


More information about the imp mailing list