Use Virtual Folder labeling instead of querytext in dimp
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 23 Sep 2010 19:11:11 +0000 (13:11 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 23 Sep 2010 21:06:53 +0000 (15:06 -0600)
imp/lib/Views/ListMessages.php

index d12249c..f6cbdbf 100644 (file)
@@ -148,12 +148,14 @@ class IMP_Views_ListMessages
         /* The search query may have changed. */
         if ($is_search &&
             ($args['initial'] || strlen($args['qsearchmbox']))) {
-            $md->slabel = $imp_search[$mbox]->querytext;
             if ($imp_search->isVFolder($mbox)) {
+                $md->slabel = $imp_search[$mbox]->label;
                 $md->vfolder = 1;
                 if (!$imp_search->isVFolder($mbox, true)) {
                     $md->noedit = 1;
                 }
+            } else {
+                $md->slabel = $imp_search[$mbox]->querytext;
             }
         }