|
Summary
In response to the List and ListSubscribe methods, this delivers the mailbox name, hierarchy delimeter and mailbox attributes in each mailbox that matches the specifications in the List or
ListSubscribe methods.
Description
The OnList event occurs to deliver a listing of the mailboxes that match the attributes specified in the List or ListSubscribed method. The OnList event delivers a mailbox name, the
hierarchy delimiter and the mailbox attributes. The Mailbox parameter is the name of the mailbox. The OnList event will be fired once for each mailbox that matches the attributes specified in the
List method.
The Flags parameter can have one or more of the following values:
| IMAP_NOINFERIORS |
It is not possible to have any child level |
| IMAP_NOSELECT |
It is not possible to select the mailbox |
| IMAP_MARKED |
The mailbox contains messages that have been added since the last time the mailbox was selected |
| IMAP_UNMARKED |
The mailbox does not contain any news messages since the last time the mailbox was selected |
Example
Private Sub Imap_OnList(Mailbox As String, Hierarchy As String, Flags As Long)
' Delivers mailbox info from List method
List.Text = List.Text + Chr(13) + Chr(10) + Mailbox
End Sub
|