From: Michael M Slusarz Date: Tue, 9 Dec 2008 06:54:06 +0000 (-0700) Subject: Fix updating thread cache on message delete. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=fb755507b1c8539a43576e3d0290b9f60ca163af;p=horde.git Fix updating thread cache on message delete. --- diff --git a/imp/lib/Mailbox.php b/imp/lib/Mailbox.php index 2ee0903ff..a758aa3c3 100644 --- a/imp/lib/Mailbox.php +++ b/imp/lib/Mailbox.php @@ -265,6 +265,7 @@ class IMP_Mailbox $sortpref = IMP::getSort($this->_mailbox); if ($sortpref['by'] == Horde_Imap_Client::SORT_THREAD) { + $this->_threadob = null; $threadob = $this->getThreadOb(); $this->_sorted = $threadob->messageList((bool)$sortpref['dir']); } else { @@ -707,6 +708,8 @@ class IMP_Mailbox $this->_sortedInfo = array_values($this->_sortedInfo); } + $this->_threadob = null; + /* Update the current array index to its new position in the message * array. */ $this->setIndex(0, 'offset');