FolderFlags Enumeration
Defines the standard flags which can be set or examined for IMAP4 folders (mailboxes).

Namespace: MailBee.ImapMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
[FlagsAttribute]
public enum FolderFlags
Members
  Member nameValueDescription
None0 No flags set.
Noinferiors1 It is not possible for any child levels of hierarchy to exist under this name; no child levels exist now and none can be created in the future.
Noselect2 It is not possible to use this name as a selectable folder.
Marked4 The folder has been marked "interesting" by the server; the folder probably contains messages that have been added since the last time the folder was selected. Note: marked folder is not the same as subscribed folder. It's up to the client to subscribe/unsubscribe folders; it's up to the server to mark/unmark folders.
Unmarked8 The folder does not contain any additional messages since the last time the folder was selected.
Inbox16 The folder is INBOX. Only available in Gmail (XLIST command can return localized INBOX name, this flag lets the client find which folder is actually INBOX).
Drafts32 The folder is used for draft items. Specifc to XLIST and SPECIAL-USE extensions.
Sent64 The folder stores sent items. Specifc to XLIST and SPECIAL-USE extensions.
Spam128 The folder stores junk e-mails. The actual flag name is "\Junk" or "\Spam". Specifc to XLIST and SPECIAL-USE extensions.
Trash256 The folder stores deleted e-mails. Specific to XLIST and SPECIAL-USE extensions.
Starred512 The folder is an alias folder which includes some "favorite" e-mails from other folders, you should check e-mail in this folder with care as you may get doubles of some e-mails from other folders if you do. The actual flag name is "\Flagged" or "\Starred". Specifc to XLIST and SPECIAL-USE extensions.
AllMail1024 The folder is an alias folder which includes e-mail from all other folders, you should not check e-mail in it as you'll get doubles of the e-mails in other folders if you do. The actual flag name is "\AllMail" or "\All". Specific to XLIST and SPECIAL-USE extensions.
Important2048 The folder is an alias folder which includes some "important" e-mails from other folders, you should check e-mail in this folder with care as you may get doubles of some e-mails from other folders if you do. Specific to Gmail.
Archive4096 This folder is used to archive messages. The meaning of an "archival" mailbox is server-dependent. Specific to SPECIAL-USE extension.
HasChildren8192 The folder has sub-folders. Specific to CHILDREN extension.
HasNoChildren16384 The folder does not have sub-folders, but they can be created there. If the folder cannot have sub-folders at all, it will bear Noinferiors flag instead of HasNoChildren. Specific to CHILDREN extension.
Remarks
To examine folder flags, the developer can use DownloadFolders(Boolean, String, String) method to obtain the collection of folders, and then iterate through returned collection and examine Flags property value for each Folder object in the collection.

Some flags which denote well-known folder types (like Sent, Drafts) can only be returned in response to XLIST command (only supported by some servers) or by the server which supports SPECIAL-USE extension. Gmail supports both XLIST and SPECIAL-USE (although it does not actually advertize SPECIAL-USE support in the capabilities). See UseXList property for details.

Standard LIST command will return flags for well-known folder types only if SPECIAL-USE extension is supported by the IMAP server. LSUB command (list subscribed folders only) MAY return these extended flags if SPECIAL-USE is supported (Gmail does, for instance) but it's up to the server implementation.

HasChildren and HasNoChildren flags can only be returned if the server supports CHILDREN extension. Gmail, Yahoo, Microsoft (Outlook.com, Hotmail.com, Live.com) and most other major providers support it.

See Also