|
Summary
The number of unread messages.
Description
The MsgUnseen property specifies the number of unseen messages in a mailbox.
This property is only valid at runtime if the user is logged in and has requested the status of a mailbox. This property should be checked in the OnStatus event. There is no default value for this
property.
Example
Private Sub Imap_OnStatus(Flags As Long)
'Delivers flags on the Mailbox properties that have been set
'In response to status method
Message = "Mailbox Status:" + 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 UID: " & Imap.MsgNextUid & Chr(13) & Chr(10)
Message = Message + "Validity value: " & Imap.MailboxUid & Chr(13) & Chr(10)
MsgBox Message, 64, "IMAP Client Sample"
End Sub
|