PHP. Руководство по PHP. 2005
imap_list
imap_list
Description
array imap_list (resource 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.
See also: imap_getmailboxes().
imap_last_error
imap_listmailbox