array imap_list ( resource $imap_stream , string $ref , string $pattern )
Read the list of mailboxes.
Returns an array containing the names of the mailboxes.