SocketTools .NET Edition

ImapClient.UndeleteMessage Method 

Removes the deletion flag for the specified message.

[Visual Basic]
Public Function UndeleteMessage( _
   ByVal messageId As Integer _
) As Boolean
[C#]
public bool UndeleteMessage(
   int messageId
);

Parameters

messageId
Number of message to undelete from the server. This value must be greater than zero. The first message in the mailbox is message number one.

Return Value

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.

Remarks

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.

See Also

ImapClient Class | SocketTools Namespace