Returns one or more flags which identify characteristics of the
current mailbox.
Syntax
object.MailboxFlags
Remarks
The MailboxFlags property returns information about the
currently selected mailbox. The value returned is one or more of the
following bit flags:
Value |
Description |
&H10000 |
mailFlagNoInferiors |
The mailbox does not contain any child mailboxes. In the
IMAP protocol, these are referred to as inferior hierarchical
mailbox names. |
&H40000 |
mailFlagMarked |
The mailbox is marked as being of interest to a client. If
this flag is used, it typically means that the mailbox contains
messages. An application should not depend on this flag being
present for any given mailbox. Some IMAP servers do not support
marked or unmarked flags for mailboxes. |
&H80000 |
mailFlagUnmarked |
The mailbox is marked as not being of interest to a client.
If this flag is used, it typically means that the mailbox does
not contain any messages. An application should not depend on
this flag being present for any given mailbox. Some IMAP
servers do not support marked or unmarked flags for
mailboxes. |
Note that this property should only be used when connected to a
mail server using the IMAP4 protocol.
Data Type
Integer (Int32)
Example
The following example demonstrates how to check the
MailboxFlags property to see if the mailbox contains any child
mailboxes:
If (InternetMail.MailboxFlags And mailFlagNoInferiors) <> 0 Then
MsgBox "This mailbox does not contain any child mailboxes"
End If
See Also
Mailbox Property,
Mailboxes Property,
MailboxName Property,
MailboxUID Property
|