ImapSetMessageFlagsAsync Method (String, Boolean, String, MessageFlagAction, Boolean) |
Namespace: MailBee.ImapMailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public Task<bool> SetMessageFlagsAsync(
string messageIndexSet,
bool indexIsUid,
string flags,
MessageFlagAction action,
bool silentMode
)
Public Function SetMessageFlagsAsync (
messageIndexSet As String,
indexIsUid As Boolean,
flags As String,
action As MessageFlagAction,
silentMode As Boolean
) As Task(Of Boolean)
Parameters
- messageIndexSet
- Type: SystemString
A message sequence string containing ordinal message numbers or UIDs. Can be composed manually or using ToString. - indexIsUid
- Type: SystemBoolean
If true, messageIndexSet is treated as a sequence of UIDs; otherwise, as a sequence of ordinal message numbers. - flags
- Type: SystemString
The string containing IMAP4 flags to be set or reset. - action
- Type: MailBee.ImapMailMessageFlagAction
The action to perform with the specified flags (set, reset, etc). - silentMode
- Type: SystemBoolean
If true, the server will NOT respond with the new values of flags of the affected messages;
otherwise, the server will produce a series of untagged FETCH responses containing the updated flag lists of affected messages.
Return Value
Type:
TaskBooleanA task that represents the asynchronous operation. The value of
TResult parameter is
true if the method succeeds; otherwise,
false.
Exceptions See Also