Don't do status call on search mailbox
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 7 Aug 2009 19:14:31 +0000 (13:14 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 7 Aug 2009 19:14:31 +0000 (13:14 -0600)
imp/lib/Views/ListMessages.php

index 3731f3f..fe074ac 100644 (file)
@@ -217,7 +217,7 @@ class IMP_Views_ListMessages
         $result->data = $this->_getOverviewData($imp_mailbox, $mbox, $data, isset($md->search));
 
         /* Get unseen/thread information. */
-        if (!$is_search) {
+        if (!$md->search) {
             $imptree = IMP_Imap_Tree::singleton();
             $info = $imptree->getElementInfo($mbox);
             if (!empty($info)) {