From fb755507b1c8539a43576e3d0290b9f60ca163af Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 8 Dec 2008 23:54:06 -0700 Subject: [PATCH] Fix updating thread cache on message delete. --- imp/lib/Mailbox.php | 3 +++ 1 file changed, 3 insertions(+) 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'); -- 2.11.0