MailBee.NET Objects 4.0

MessageFlagAction Enumeration

Defines actions to be performed with the message flags.

public enum MessageFlagAction

Remarks

It's not error to attempt to remove flags which are not set or add flags which are already set. The server will simply do nothing in this case. For instance, if the application sets "\Deleted" flag for two messages and the first message already has this flag set, the first message flags will remain intact while the second message will acquire the "\Deleted" flag.

To remove all flags from the message (including both system and server-specific flags), the developer should call SetMessageFlags method passing empty flags and specifying Replace as action parameter value.

Members

Member NameDescription
Replace The specified flags will replace the existing flags of the message.
Add The specified flags will be added to the list of existing flags of the message.
Remove The specified flags will be removed from the list existing flags of the message.

Requirements

Namespace: MailBee.ImapMail

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

See Also

MailBee.ImapMail Namespace | SetMessageFlags