From: Michael M Slusarz Date: Mon, 7 Dec 2009 22:15:17 +0000 (-0700) Subject: Move session thread init to a more appropriate place X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=198fa13b2e2dd4d1e3d1e4478a04ee0286a64a8d;p=horde.git Move session thread init to a more appropriate place --- diff --git a/imp/lib/Auth.php b/imp/lib/Auth.php index 0f506b0b5..aee362b11 100644 --- a/imp/lib/Auth.php +++ b/imp/lib/Auth.php @@ -81,14 +81,6 @@ class IMP_Auth throw new Horde_Auth_Exception($e->getMessage()); } - /* Set the IMAP threading algorithm. */ - $ptr = $GLOBALS['imp_imap']->loadServerConfig($credentials['server']); - if (strcasecmp($ptr['protocol'], 'imap') == 0) { - $_SESSION['imp']['imap']['thread'] = in_array(isset($ptr['thread']) ? strtoupper($ptr['thread']) : 'REFERENCES', $GLOBALS['imp_imap']->ob()->queryCapability('THREAD')) - ? 'REFERENCES' - : 'ORDEREDSUBJECT'; - } - return false; } @@ -431,6 +423,11 @@ class IMP_Auth } } } + + /* Set the IMAP threading algorithm. */ + $sess['imap']['thread'] = in_array(isset($ptr['thread']) ? strtoupper($ptr['thread']) : 'REFERENCES', $GLOBALS['imp_imap']->ob()->queryCapability('THREAD')) + ? 'REFERENCES' + : 'ORDEREDSUBJECT'; } /* Set the SMTP options, if needed. */