Working with Message Flags on Server
Contents
[
Hide
]
Changing the Message Flags
You can change message flags by using the ChangeMessageFlags() method. This method takes two parameters.
- The message’s sequence number or unique ID.
- MessageFlag.
The following flags can be set:
- Answered
- Deleted
- Draft
- Empty
- Flagged
- IsRead
- Recent
Setting Message Flags
The following code snippet shows you how to change message flags on an IMAP server with Aspose.Email.
Setting Custom Flags
You can also set custom flags to a message using the ImapClient of the API. The ImapClient’s AddMessageFlags provides the ability of setting custom flags on messages.