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 MessageIndex property to the
message number and then check the value of the MessageFlags property
to determine if the mailFlagDeleted bit flag has been set.
This method can only be used when connected to an IMAP server.