Removes the deletion flag for the specified message.
This method returns a boolean value. If the method succeeds, the return value is true. If the method fails, the return value is false. To get extended error information, check the value of the LastError property.
The UndeleteMessage method removes the deletion flag for the specified message in the current mailbox. To determine if a message has been marked for deletion, set the Message property to the message number and then check the value of the MessageFlags property to determine if the imapFlagDeleted bit flag has been set.
ImapClient Class | SocketTools Namespace