Defines the standard flags which can be set or examined for IMAP4 folders (mailboxes).
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
To examine folder flags, the developer can use DownloadFolders 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.
Note Some flags (like Sent, Drafts, Inbox) can only be returned in response to XLIST command (which may not be supported by all servers). Standard LIST command does not support flags for well-known folder types. See UseXList property for details.
| Member Name | Description | Value |
|---|---|---|
| None | No flags set. | 0 |
| Noinferiors | 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. | 1 |
| Noselect | It is not possible to use this name as a selectable folder. | 2 |
| Marked | 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. | 4 |
| Unmarked | The folder does not contain any additional messages since the last time the folder was selected. | 8 |
| Inbox | The folder is INBOX. Only available if XLIST is used. | 16 |
| Drafts | The folder is used for draft items. Only available if XLIST is used. | 32 |
| Sent | The folder stores sent items. Only available if XLIST is used. | 64 |
| Spam | The folder stores junk e-mails. Only available if XLIST is used. | 128 |
| Trash | The folder stores deleted e-mails. Only available if XLIST is used. | 256 |
| Starred | 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. Only available if XLIST is used. | 512 |
| AllMail | 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. Only available if XLIST is used. | 1024 |
Namespace: MailBee.ImapMail
Assembly: MailBee.NET (in MailBee.NET.dll)
MailBee.ImapMail Namespace | Flags