<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>DIMP initialises IMP session</title> 
  <pubDate>Fri, 10 Apr 2026 17:28:11 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/9024</link> 
  <atom:link rel="self" type="application/rss+xml" title="DIMP initialises IMP session" href="https://bugs.horde.org/ticket/9024/rss" /> 
  <description>DIMP initialises IMP session</description> 
 
   
   
  <item> 
   <title>Accessing https://webmail.host/dimp/ without being logged in</title> 
   <description>Accessing https://webmail.host/dimp/ without being logged in redirects to Horde login screen. After logging in /dimp/index.php is opened again but this time IMP session is missing. Another redirect happens here, this time to /imp/redirect.php. Finally /imp/redirect.php forwards to /imp/login.php with logout_reason=failed. This final redirect happens here:

/* If we already have a session: */
if (isset($_SESSION[&#039;imp&#039;]) &amp;&amp; is_array($_SESSION[&#039;imp&#039;])) {
    /* Make sure that if a username was specified, it is the current
     * username. */
    if (($imapuser !== null &amp;&amp; ($imapuser != $_SESSION[&#039;imp&#039;][&#039;user&#039;])) ||
        ($pass !== null &amp;&amp; ($pass != Secret::read(Secret::getKey(&#039;imp&#039;), $_SESSION[&#039;imp&#039;][&#039;pass&#039;])))) {

        /* Disable the old session. */
        unset($_SESSION[&#039;imp&#039;]);
        _redirect(Auth::addLogoutParameters(IMP::logoutUrl(), AUTH_REASON_FAILED));
    }

Problem is that DIMP initializes $_SESSION[&#039;imp&#039;] with

   $_SESSION[&#039;imp&#039;][&#039;viewmode&#039;] = &#039;dimp&#039;

but the rest of the session is missing so IMP thinks something went wrong. Attached patch fixes this causing DIMP to update the session only if it&#039;s already initialized.</description> 
   <pubDate>Thu, 13 May 2010 13:49:09 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9024#t58802</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

Bug: 9024
Su</title> 
   <description>Changes have been made in CVS for this ticket:

Bug: 9024
Submitted by: Valentin.Vidic@CARNet.hr
Don&#039;t set viewmode if session is not active.
http://cvs.horde.org/diff.php/imp/lib/base.php?rt=horde&amp;r1=1.79.10.21&amp;r2=1.79.10.22&amp;ty=u</description> 
   <pubDate>Thu, 13 May 2010 21:53:04 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9024#t58825</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

Bug: 9024
Su</title> 
   <description>Changes have been made in CVS for this ticket:

Bug: 9024
Submitted by: Valentin.Vidic@CARNet.hr
Don&#039;t set viewmode if session is not active.
http://cvs.horde.org/diff.php/dimp/lib/base.php?rt=horde&amp;r1=1.33.2.9&amp;r2=1.33.2.10&amp;ty=u</description> 
   <pubDate>Thu, 13 May 2010 21:55:36 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9024#t58826</link> 
  </item> 
   
  <item> 
   <title>Fixed in IMP 4.3.8 and DIMP 1.1.5.</title> 
   <description>Fixed in IMP 4.3.8 and DIMP 1.1.5.</description> 
   <pubDate>Thu, 13 May 2010 21:55:53 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9024#t58827</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
