UpdateMessage Method
Alters flags assotiated with a message in the current mailbox on the IMAP server.
procedure UpdateMessage(UID: Integer; SetFlags: Integer; ClearFlags: Integer);
Remarks
Use this method to alter flags associated with a UID message in CurrentMailbox.