imap_list Read the list of mailboxes Description arrayimap_list resourceimap_stream stringref stringpattern Returns an array containing the names of the mailboxes. See imap_getmailboxes for a description of ref and pattern. <function>imap_list</function> example \n"; } } else { echo "imap_list failed: " . imap_last_error() . "\n"; } imap_close($mbox); ?> ]]> See also: imap_getmailboxes.