Adds the specified set of IMAP message flags to the existing flag attributes of the mail message with the specified unique identifier (UID).

Namespace: S22.Imap
Assembly: S22.Imap (in S22.Imap.dll) Version: 3.6.0.0 (3.6.0.0)

Syntax

C#
public void AddMessageFlags(
	uint uid,
	string mailbox,
	params MessageFlag[] flags
)

Parameters

uid
Type: System..::..UInt32
The UID of the mail message to add the flag attributes to.
mailbox
Type: System..::..String
The mailbox that contains the mail message. If this parameter is null, the value of the DefaultMailbox property is used to determine the mailbox to operate on.
flags
Type: array<S22.Imap..::..MessageFlag>[]()[][]
One or multiple message flags from the MessageFlag enumeration.

Implements

IImapClient..::..AddMessageFlags(UInt32, String, array<MessageFlag>[]()[][])

Remarks

This method adds the specified set of flags to the existing set of flag attributes of the message. If you wish to replace the old attributes, use the SetMessageFlags(UInt32, String, array<MessageFlag>[]()[][]) method instead.

Exceptions

ExceptionCondition
S22.Imap..::..BadServerResponseExceptionThe mail message flags could not be added. The message property of the exception contains the error message returned by the server.
System..::..ObjectDisposedExceptionThe ImapClient object has been disposed.
System.IO..::..IOExceptionThere was a failure writing to or reading from the network.
S22.Imap..::..NotAuthenticatedExceptionThe method was called in non-authenticated state, i.e. before logging in.

See Also