|
Summary
Specifies the message status flags supported by the mailbox that was selected.
Description
The MailboxFlags property specifies the mailbox flags recognized by the currently selected mailbox. This property can contain the following values.
| IMAP_MSG_SEEN |
Message has been read |
| IMAP_MSG_ANSWERED |
Message has been answered |
| IMAP_MSG_FLAGGED |
Message is "flagged" for urgent/special attention |
| IMAP_MSG_DELETED |
Message has the deleted flag set |
| IMAP_MSG_DRAFT |
Message has not completed composition |
These are the message flags, supported by the mailbox, that may be set for messages using the Store method.
The mailbox must have been selected with the Select or Examine method. This property is only valid when the selection has been successful and the OnSelect event has been fired. The connection to the
IMAP server must already have been established.
This property should be checked in the OnSelect event when the mailbox has been successfully selected with the Select or Examine method.
This property is read only. 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 & Chr(13) & Chr(10)
Message = Message + "New Messages: " & Imap.MsgRecent & Chr(13) & Chr(10)
Message = Message + "First Unseen Message: " & Imap.MsgFirstUnseen & Chr(13) & Chr(10)
Message = Message + "UID: " & Imap.MailboxUid & Chr(13) & Chr(10)
Message = Message + "Flags: " & Imap.MailboxFlags & Chr(13) & Chr(10)
MsgBox Message, 64, "IMAP Client Sample"
End Sub
|