MailBee.NET Objects 7.1

SystemMessageFlags Enumeration

Defines the standard (system) flags which can be set or examined for mail messages in the folder.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

[Flags]
public enum SystemMessageFlags

Remarks

To examine flags of an existing message (or messages), the developer can use DownloadEnvelopes method setting Flags bit in parts parameter value. Then, the developer should iterate through the returned EnvelopeCollection and examine Envelope.Flags property value. This property returns MessageFlagSet object which represents all flags of the message including both system flags and non-standard flags.

System flags can be examined via SystemFlags property of MessageFlagSet object.

To set specific system flags for messages, the developer can use SetMessageFlags method.

See MessageFlagSet topic on more information regarding message flags.

Members

Member NameDescriptionValue
None No flags set. 0
Seen Message has been read. 1
Answered Message has been answered. 2
Flagged Message is "flagged" for urgent/special attention. 4
Deleted Message is "deleted" for removal by later Expunge or Close. 8
Draft Message has not completed composition (marked as a draft). 16
Recent Message is "recently" arrived in this folder. This session is the first session to have been notified about this message; if the session is read-write (the folder was selected with SelectFolder method), subsequent sessions will not see "\Recent" set for this message. If the folder was selected in read-only mode (using ExamineFolder method), "\Recent" flag will not be removed from the message. This flag can not be altered by the client. 32
CanCreate "\*" flag. This special flag may appear only in Imap.PermanentFlags.SystemFlags value. If it's present, it indicates it's possible to create new flags in this folder by attempting to set those flags for messages. 64
Other There are some other (non-system) flags set. The developer may examine AllFlags property of MessageFlagSet object to get the list of all flags set. 128

Requirements

Namespace: MailBee.ImapMail

Assembly: MailBee.NET (in MailBee.NET.dll)

See Also

MailBee.ImapMail Namespace | MessageFlagSet