From 89ef140dfc514e723b48a62b713c1dbcd3b9de67 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 20 Feb 2009 14:03:43 -0700 Subject: [PATCH] Fix rebuilding of mailbox on message action --- imp/lib/Mailbox.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/imp/lib/Mailbox.php b/imp/lib/Mailbox.php index 998ab276c..145f3a522 100644 --- a/imp/lib/Mailbox.php +++ b/imp/lib/Mailbox.php @@ -562,6 +562,10 @@ class IMP_Mailbox case 'uid': $this->_arrayIndex = $this->getArrayIndex($data); + if (empty($this->_arrayIndex)) { + $this->_rebuild(true); + $this->_arrayIndex = $this->getArrayIndex($data); + } break; } } @@ -597,7 +601,7 @@ class IMP_Mailbox (!is_null($this->_arrayIndex) && !$this->_searchmbox && !$this->getIMAPIndex(1))) { - $this->_build = false; + $this->_sorted = null; $this->_buildMailbox(); } } -- 2.11.0