[imp] direct login to mailbox

Christopher Audley audley@cnsolutionsllc.com
Wed, 22 May 2002 19:45:29 -0400


My bad, I forgot that GET on redirect doesn't work.  PHP stores query 
string values and form post
values separately, and redirect.php looks at HTTP_POST_VARS.  You need 
to post the values to
redirect.php.  In the document that you would put the URL to login to 
IMP, instead put a hidden
form...

<form name="impLogon" method="POST" action="http://..../redirect.php">

<input type="hidden" name="imapuser" value="me"/>
<input type="hidden" name="pass" value"password"/>
YADDA YADDA YADDA

</form>


Then, in place of the URL you were using, put in something like
href="javascript:document.impLogon.submit();"

Cheers
Chris

Miha Verlic wrote:

>Hum..
>I tried http://server/horde/imp/redirect.php?imapuser=username&pass=password&server=127.0.0.1, but all this does it redirects to login page, with username filled in. If I add &folders=blah 'Folder Prefix' gets filled in with changed value too, but password field appear empty on the login page.
>
>--Miha
>
>
>On 22.5.2002 at 18:59 Christopher Audley wrote:
>
>>Yes, but you need to direct your URL to redirect.php.  At minimum, you 
>>need to specify
>>imapuser, pass and server.  However, if you don't have a server listed 
>>in your
>>config/servers.php, you can specify all of
>>
>>imapuser
>>pass
>>server
>>port
>>maildomain
>>realm
>>protocol
>>namespace
>>folders
>>
>>Just as you would in servers.php
>>
>>Cheers
>>Chris
>>
>
>
>
>
>