[imp] IMP_Imap_Tree
Michael M Slusarz
slusarz at horde.org
Mon Oct 18 18:08:34 UTC 2010
Quoting Rui Carneiro <rui.carneiro at portugalmail.net>:
> Folders:
>
> - A
> - B
> - C
> -- C1
> -- C2
> - D
> - F
>
> Code:
>
> $imptree = $GLOBALS['injector']->getInstance('IMP_Imap_Tree');
> $imptree->setIteratorFilter(0, 'C');
> $subfolders = array_keys(iterator_to_array($imptree));
> *
> *
> Result:
>
> *subfolders ==> array(5){'C', 'C1', 'C2', 'D', 'F'};*
You want:
$imptree->setIteratorFilter(IMP_Imap_Tree::FLIST_NOBASE, 'C');
michael
--
___________________________________
Michael Slusarz [slusarz at horde.org]
More information about the imp
mailing list