Represents a set of flags of a mail message.
For a list of all members of this type, see MessageFlagSet Members.
System.Object
MailBee.ImapMail.MessageFlagSet
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
Message flags can be of two types: system (standard) and non-standard. System flags can be examined using SystemFlags property. AllFlags property returns all the flags as an array of strings. ToString method returns all the the flags as a string.
To learn flags of particular messages, the developer can use DownloadEnvelopes method (or its overloads), and then examine Flags property of Envelope objects contained within the returned EnvelopeCollection.
To learn which message flags are defined in the currently selected folder, the developer can use Flags property of the Imap object.
To learn which message flags can be applied to messages permanently of whether it's allowed to define new flags by applying them to messages, the developer can use PermanentFlags property of the Imap object.
To apply flags to messages, the developer can use SetMessageFlags method. DeleteMessages method is a particular case of SetMessageFlags method which adds "\Deleted" flag to messages.
To search messages having specified flags set, the developer can use Search method.
Note Message flags is not the same as folder flags (FolderFlags). Each folder has 3 groups of flags set: folder flags (which can be examined via Flags property of Folder object), permanent message flags (PermanentFlags property of the Imap object), and available message flags (Flags property of the Imap object).
Namespace: MailBee.ImapMail
Assembly: MailBee.NET (in MailBee.NET.dll)
MessageFlagSet Members | MailBee.ImapMail Namespace | SystemMessageFlags