Fix renaming mailboxes
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 7 Sep 2010 03:44:01 +0000 (21:44 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 7 Sep 2010 03:44:01 +0000 (21:44 -0600)
imp/lib/Folder.php

index bd12755..05d60d2 100644 (file)
@@ -219,7 +219,7 @@ class IMP_Folder
         $inserted = array($new);
 
         $imaptree = $GLOBALS['injector']->getInstance('IMP_Imap_Tree');
-        $imaptree->setIteratorFilter(IMP_Imap_Tree::FLIST_NOCONTAINER | IMP_Imap_Tree::FLIST_UNSUB, $old);
+        $imaptree->setIteratorFilter(IMP_Imap_Tree::FLIST_NOCONTAINER | IMP_Imap_Tree::FLIST_UNSUB | IMP_Imap_Tree::FLIST_NOBASE, $old);
 
         /* Get list of any folders that are underneath this one. */
         $all_folders = array_merge(array($old), array_keys(iterator_to_array($imaptree)));