|
Summary
The first message in the currently selected or currently queried mailbox that has not yet been read.
Description
The MsgFirstUnseen property specifies the message sequence number of the first unseen message in the currently selected mailbox. If there are no unseen messages then this property will be set
to -1.
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 event. 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 + "First Unseen Message: " & Imap.MsgFirstUnseen
.
.
MsgBox Message, 64, "IMAP Client Sample"
End Sub
|