|
Summary
Sets the mailbox properties of the selected mailbox specified in the Select or Examine method.
Description
The OnSelect event occurs in response to successfully calling the Select or the Examine method. The OnSelect event delivers the response from the server and notifies the application that the
Mailbox properties have been set.
The Buffer parameter contains the entire unparsed response from the server and the Length parameter contains the length of the buffer.
The following properties are set by this event: MailboxName, MailboxPermission, MailboxUid, MailboxFlags, MailboxPermanentFlags, MsgNextUid, MsgTotal, MsgRecent and MsgUnseen.
Exampl e
Private Sub Imap_OnSelect(Buffer As String, Length As Long)
'Delivers selected mailbox info from Select or Examine method
'Notifies that Mailbox properties have been set
List.Text = List.Text + Chr(10) + Buffer
Message = "Mailbox Selected:" & Chr(13) & Chr(10)
Message = Message + "Total Messages: " & Imap.MsgTotal & Chr(13) & Chr(10)
Message = Message + "New Messages: " & Imap.MsgRecent & Chr(13) & Chr(10)
Message = Message + "Unseen Messages: " & Imap.MsgUnseen & Chr(13) & Chr(10)
Message = Message + "Next Message UID: " & Imap.MsgNextUid & Chr(13) & Chr(10)
Message = Message + "Mailbox UID: " & Imap.MailboxUid & Chr(13) & Chr(10)
Message = Message + "Flags: " & Imap.MailboxFlags & Chr(13) & Chr(10)
MsgBox Message, 64, "IMAP Client Sample"
End Sub
|