[imp] IMP 3.1 Login behavior

Martin List-Petersen martin@list-petersen.dk
18 Jun 2002 12:58:54 +0200


On Tue, 2002-06-18 at 12:22, Jan Schneider wrote:
> Zitat von Martin List-Petersen <martin@list-petersen.dk>:
> 
> > On Tue, 2002-06-18 at 11:57, Jan Schneider wrote:
> > > I still can't reproduce it. But we fixed this code a bit between the
> > > versions. Do you by chance still have Horde 2.0? Perhaps this won't
> > work
> > > with IMP 3.1 and Horde 2.0, but Horde 2.1 is definitely fine here.
> > > 
> > 
> > Nope, i use a cvs snapshot of Horde RELENG_2 and IMP RELENG_3
> 
> Doh. I have no idea what going on there. Can put some debugging code in
> imp/redirect.php to see where, when and why the browser gets redirected to
> the inbox?
 
In line 79 of redirect.php in the section for (($reason =
IMP::createSession()) === true) there is the following code:

        $url = $prefs->getValue('initial_page');
   	if ($url != 'folders.php') {
            $url = 'mailbox.php?actionID=' . $actionID . '&mailbox=' .
urlencode(IMP::addPreambleString($url));
            $url .= '&' . IMP::getComposeArgs();
	}
        header('Location: ' . Horde::applicationUrl($url, true));

This seems to redirect to mailbox allways, if this is a new session and
initial_page is not eq folders.php. However .. it is here, where the
redirection happens.

-- 
Martin List-Petersen 
--
No spitting on the Bus!
Thank you, The Mgt.