MailBee.NET Objects 3.1

Imap.Flags Property

Gets the flags that are applicable for the currently selected folder.

public MessageFlagSet Flags {get;}

Property Value

A reference to the MessageFlagSet object representing the flags that are applicable for the currently selected folder.

Remarks

If the folder is selected, the flag list contains the system-defined flags at a minimum (except "\Recent" flag which cannot be edited by the client). Typically, the following flags are returned: "\Answered", "\Flagged", "\Deleted", "\Seen", "\Draft". Also, this list may contain other flags specific to certain servers (like "$Spam", "$Personal", etc).

If no folder is selected, the flag list will be empty.

To access the flag list as a string, the developer can use ToString method. To access the system-defined flags of the flag list, the SystemFlags property can be used.

See Also

Imap Class | MailBee.ImapMail Namespace