Before calling this method, a connection to the IMAP server must be
established and a user must be authenticated successfully.
For more information about $reference and $mailbox, consult
the IMAP RFCs documents ({@link http://www.faqs.org/rfcs/rfc1730.html}
or {@link http://www.faqs.org/rfcs/rfc2060.html}, section 7.2.2.).
By default, $reference is "" and $mailbox is "*".
The array returned contains the mailboxes available for the connected
user on this IMAP server. Inbox is a special mailbox, and it can be
specified upper-case or lower-case or mixed-case. The other mailboxes
should be specified as they are (to the {@link selectMailbox()} method).
Example of listing mailboxes:
$imap = new ezcMailImapTransport( 'imap.example.com' );
$imap->authenticate( 'username', 'password' );
$mailboxes = $imap->listMailboxes();
public listMailboxes ( string $reference = '', string $mailbox = '*' ) : array(string) | ||
$reference | string | |
$mailbox | string | |
Результат | array(string) |