Author Topic: get mailbox list with imap  (Read 3729 times)

Offline webman

  • Newbie
  • *
  • Posts: 1
get mailbox list with imap
« on: September 12, 2013, 01:30:52 AM »
hi , guys
i want get mailboxes with use php imap functions
my code :
Code: [Select]
$list = imap_list($mbox, "{imap.example.org}", "*");
if (is_array($list)) {
    foreach ($list as $val) {
        echo imap_utf7_decode($val) . "\n";
    }
} else {
    echo "imap_list failed: " . imap_last_error() . "\n";
}

imap_close($mbox);

but show me only INBOX
please  help me
regard

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: get mailbox list with imap
« Reply #1 on: September 12, 2013, 12:01:22 PM »
I'm not sure what your question has to do with RoundCube. RoundCube doesn't use the PHP IMAP library.