Hi Jayakumar,
just read my second post in this thread carefully. The flag UNSEEN doesn't exist (see constants in ImapFlags), so has no effect. Every read message will have the SEEN flag set, so to mark it as unread again, you need to remove it:
Pavel
just read my second post in this thread carefully. The flag UNSEEN doesn't exist (see constants in ImapFlags), so has no effect. Every read message will have the SEEN flag set, so to mark it as unread again, you need to remove it:
// msg is read, has the SEEN flag set.
msg.RemoveFlag(ImapFlags.SEEN); // Removing SEEN flag, marking message as unread again.
Greets,Pavel