Fix updating thread cache on message delete.
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 9 Dec 2008 06:54:06 +0000 (23:54 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 9 Dec 2008 06:54:06 +0000 (23:54 -0700)
imp/lib/Mailbox.php

index 2ee0903..a758aa3 100644 (file)
@@ -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');