The GetNextMailbox method returns the next matching mailbox
name. When the last mailbox has been returned, the next call to this
method will result in an error, with the last error code set to
ST_ERROR_NO_MORE_MAILBOXES.
It is recommended you compile the application using the Unicode
character set, particularly if it is possible that mailbox names will
contain Unicode characters or symbols. This will ensure that mailbox
names are automatically converted from modified UTF-7 to UTF-16
Unicode. If Unicode is not used and a mailbox name contains non-ASCII
characters, the name will be returned using a modified UTF-7 encoding
format as defined by the IMAP4 standard. The mailbox name will not be
returned as UTF-8 Unicode or as ANSI text converted to the current
locale.
Subscribed mailboxes are those which were specified using the
SubscribeMailbox method. Marked mailboxes are typically those
which have some special importance to the user.
For more information about enumerating the available mailboxes on
the IMAP server, refer to the GetFirstMailbox method.