Example: imap_list_mailboxes

In the following example, the imap_list_mailboxes function gets a list of the messages and saves the message count to a variable.

    imap_list_mailboxes("ListMailboxes",
            "Reference=#news.",
            "MatchName=comp.mail.*",
            LAST );