From 4595bd9e1713855d619688a86938079c19b16377 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 29 Jul 2009 12:43:17 -0600 Subject: [PATCH] Use isEditableVFolder(). --- imp/lib/Search.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/imp/lib/Search.php b/imp/lib/Search.php index d5221e3b9..6e638ce35 100644 --- a/imp/lib/Search.php +++ b/imp/lib/Search.php @@ -102,8 +102,7 @@ class IMP_Search $imaptree = IMP_Imap_Tree::singleton(); foreach ($this->_getVFolderList() as $key => $val) { if (!empty($val['vfolder']) && - !$this->isVTrashFolder($key) && - !$this->isVINBOXFolder($key)) { + !$this->isEditableVFolder($key)) { $imaptree->insertVFolders(array($key => $val['label'])); unset($val['uiinfo']); $_SESSION['imp']['search'][$key] = $val; @@ -445,7 +444,7 @@ class IMP_Search } /** - * Is the current active folder an editable Virtual Folder? + * Is a mailbox an editable Virtual Folder? * * @param string $id The search query id to use (by default, will use * the current ID set in the object). -- 2.11.0