|
Summary
Mailbox flags that may be changed permanently
Description
The MailboxPermanentFlags property specifies the mailbox flags that can be changed permanently on 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.
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 = "Permanent flags include: "
If Imap.MailboxPermanentFlags And IMAP_MSG_SEEN Then
Message = Message + "Seen "
ElseIf Imap.MailboxPermanentFlags And IMAP_MSG_ANSWERED Then
Message = Message + "Answered "
.
.
End If
MsgBox Message, 64, "IMAP Client Sample"
End Sub
|