Skip to content

Commit

Permalink
Fix mailboxList API call
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Oct 15, 2013
1 parent 932c934 commit f092055
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions imp/lib/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,19 @@ public function batchCompose($args = array(), $extra = array())
public function mailboxList()
{
$iterator = new IMP_Ftree_IteratorFilter_Nocontainers(
IMP_Ftree_IteratorFilter::create()
IMP_Ftree_IteratorFilter::create(
IMP_Ftree_IteratorFilter::NO_REMOTE
)
);
$mboxes = array();

foreach ($iterator as $val) {
$mbox_ob = $val->mbox_ob;
$mboxes[] = array(
'd' => $val->mbox_ob->imp_imap->namespace_info['delimiter'],
'label' => $val->label,
'd' => $mbox_ob->namespace_delimiter,
'label' => $mbox_ob->label,
'level' => $val->level,
'ob' => $val->mbox_ob->imap_mbox_ob
'ob' => $mbox_ob->imap_mbox_ob
);
}

Expand Down

0 comments on commit f092055

Please sign in to comment.