Skip to content

Commit

Permalink
POP3 doesn't support ANY folders, even if they are not IMAP based
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Sep 19, 2013
1 parent 8cefba4 commit 3036e20
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions imp/lib/Ftree.php
Expand Up @@ -173,14 +173,16 @@ public function init()
: new IMP_Ftree_Account_Inboxonly();
array_map(array($this, '_insertElt'), $ob->getList($mask));

/* Add remote servers. */
$this->insert(iterator_to_array($injector->getInstance('IMP_Remote')));

/* Add virtual folders to the tree. */
$iterator = IMP_Search_IteratorFilter::create(
IMP_Search_IteratorFilter::VFOLDER
);
array_map(array($this, 'insert'), iterator_to_array($iterator));
if ($access_folders) {
/* Add remote servers. */
$this->insert(iterator_to_array($injector->getInstance('IMP_Remote')));

/* Add virtual folders to the tree. */
$iterator = IMP_Search_IteratorFilter::create(
IMP_Search_IteratorFilter::VFOLDER
);
array_map(array($this, 'insert'), iterator_to_array($iterator));
}

if ($old_track) {
$this->eltdiff->track = true;
Expand Down

0 comments on commit 3036e20

Please sign in to comment.