[imp] Creating a custom login form

Barry Pederson barryp@medicine.nodak.edu
Tue, 10 Sep 2002 11:12:53 -0500


Nicolas [HiTech Planet] wrote:
> Unfortunately, my problem is not solved. Using the edited-whit-my-settings
> "custom-login.php" script, it does not redirect me to the INBOX, even if it
> seems to write a correct URL in the adress bar
> (http://mail.mydomain.com/horde/imp/redirect.php?horde=9d0504f66e9c8b9bf9b09
> 00d2d40669d), i'm still on the login page..

This is basically what I've been using on my setup  Seems to work pretty 
well, takes them right to the inbox.  This is with stock IMP 3.1

-----------------------------
<form action="http://imp.foo.edu/imp31/horde/imp/redirect.php" method="post">
     <input type="hidden" name="server" value="foo.edu" />
     <input type="hidden" name="realm" value="foo.edu" />
     <input type="hidden" name="maildomain" value="foo.edu" />
         <table>
             <tr>
                 <td align="right">userid:</td>
                 <td><input name="imapuser" type="text" size="12" 
maxlength="16" /></td>
             </tr>

             <tr>
                 <td align="right">password:</td>
                 <td><input name="pass" type="password" size="12" 
maxlength="16" autocomplete="off" /></td>
             </tr>
             <tr>
                 <td align="right">&nbsp;</td>
                 <td><input name="button" type="submit" value="Log in" /></td>
             </tr>
         </table>
</form>
--------------------------------

	Barry