UndeleteMessage Method

Removes the deletion flag for the specified message.

Syntax

object.UndeleteMessage( MessageNumber )

Remarks

The UndeleteMessage method removes the deletion flag for the specified message in the current mailbox. The following is a description of the arguments that may be passed to the method:

MessageNumber
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.

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.

Return Value

A value of zero is returned if the method was successful. Otherwise, a non-zero error code is returned which indicates the cause of the failure.

See Also

MessageFlags Property, DeleteMessage Method, ReselectMailbox Method


Copyright © 2008 Catalyst Development Corporation. All rights reserved.