imap_listmailbox

imap_listmailbox -- Read the list of mailboxes

Description

array imap_listmailbox(int imap_stream, string ref, string pattern);

Returns an array containing the names of the mailboxes. See imap_getmailboxes() for a description of ref and pattern.