* email/IMAP: revert the static caching of the selected mailbox, as the selecting of the mailbox seems not to live through the request

This commit is contained in:
Klaus Leithoff 2012-08-22 07:37:21 +00:00
parent 08af7636e0
commit f3b4b5687e

View File

@ -221,7 +221,8 @@ class Net_IMAP extends Net_IMAPProtocol {
function selectMailbox($mailbox)
{
static $mailboxSelected;
if (!empty($mailboxSelected) && $mailboxSelected==$mailbox) return true;
// does not work as expected
//if (!empty($mailboxSelected) && $mailboxSelected==$mailbox) return true;
if (PEAR::isError($ret=$this->cmdSelect($mailbox))) {
return $ret;