FolderFlags Enumeration |
Namespace: MailBee.ImapMail
Member name | Value | Description | |
---|---|---|---|
None | 0 | No flags set. | |
Noinferiors | 1 | 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. | |
Noselect | 2 | It is not possible to use this name as a selectable folder. | |
Marked | 4 | 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. | |
Unmarked | 8 | The folder does not contain any additional messages since the last time the folder was selected. | |
Inbox | 16 | 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). | |
Drafts | 32 | The folder is used for draft items. Specifc to XLIST and SPECIAL-USE extensions. | |
Sent | 64 | The folder stores sent items. Specifc to XLIST and SPECIAL-USE extensions. | |
Spam | 128 | The folder stores junk e-mails. The actual flag name is "\Junk" or "\Spam". Specifc to XLIST and SPECIAL-USE extensions. | |
Trash | 256 | The folder stores deleted e-mails. Specific to XLIST and SPECIAL-USE extensions. | |
Starred | 512 | 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. | |
AllMail | 1024 | 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. | |
Important | 2048 | 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. | |
Archive | 4096 | This folder is used to archive messages. The meaning of an "archival" mailbox is server-dependent. Specific to SPECIAL-USE extension. | |
HasChildren | 8192 | The folder has sub-folders. Specific to CHILDREN extension. | |
HasNoChildren | 16384 | 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. |
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.