Re: [imp] IMP_Imap_Tree

2010-10-19 Thread Rui Carneiro
> > You want: > $imptree->setIteratorFilter(IMP_Imap_Tree::FLIST_NOBASE, 'C'); > I thought that I tested that, but I didn't. Thank you Michael! -- Rui Carneiro Eng. Software *m.* 963446125 *Portugalmail* | plataformas de inovação *w.* http://www.portugalmail.net -- IMP mailing list - Join the

Re: [imp] IMP_Imap_Tree

2010-10-18 Thread Michael M Slusarz
Quoting Rui Carneiro : 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'};*

[imp] IMP_Imap_Tree

2010-10-18 Thread Rui Carneiro
Hi, After the recent changes on IMP_Imap_Tree I had some problems. I have this deprecated code: $subfolders = $imptree->folderList(0, $this->_vars->mbox); Here it is my example and what I tried: Folders: - A - B - C -- C1 -- C2 - D - F Code: $imptree = $GLOBALS['injector']->getInstance('IMP_