Setting message flags |
You can set the flags for one or more messages using the Store methods.
The following table lists the Flags and their description.
Example 1
This example adds the \Answered flag for messages 1 through 10 to the existing flags.
[C#] myImap.Store(1, 10, Imap.FLAG_MODE_ADD, Imap.FLAG_ANSWERED);
[Visual Basic] myImap.Store(1, 10, Imap.FLAG_MODE_ADD, Imap.FLAG_ANSWERED)
Example 2
This example overwrites all flags with the \Answered flag for messages 1 through 10.
[C#] myImap.Store(1, 10, Imap.FLAG_MODE_REPLACE, Imap.FLAG_ANSWERED);
[Visual Basic] myImap.Store(1, 10, Imap.FLAG_MODE_REPLACE, Imap.FLAG_ANSWERED)
Example 3
This example removes the \Answered flag for messages 1 through 10 from the existing flags.
[C#] myImap.Store(1, 10, Imap.FLAG_MODE_DELETE, Imap.FLAG_ANSWERED);
[Visual Basic] myImap.Store(1, 10, Imap.FLAG_MODE_DELETE, Imap.FLAG_ANSWERED)
|