imap_getsubscribed

List all the subscribed mailboxes (PHP 3 >= 3.0.12, PHP 4, PHP 5)
array imap_getsubscribed ( resource imap_stream, string ref, string pattern )

This function is identical to imap_getmailboxes(), except that it only returns mailboxes that the user is subscribed to.