|
Summary
Specifies the total number of messages in the mailbox currently selected or queried.
Description
The MsgTotal property specifies the total number of messages that exist in the currently selected mailbox.
This property is only valid at runtime if the user is logged in and has selected a mailbox. This property should be checked in the OnSelect and OnStatus events. There is no default value for this
property.
Example
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
Message = "Mailbox Selected:" & Chr(13) & Chr(10)
Message = Message + "Total Messages: " & Imap.MsgTotal
.
.
MsgBox Message, 64, "IMAP Client Sample"
End Sub
|