wodMailbox ActiveX Control - Remove Method
      
 

Description

Removes message from mailbox.


Return Type

None  


Syntax

object.Remove Message



The Remove Method syntax has these parts:

Part Description
object An expression evaluating to an object of type Messages.
Message Required. A Message object. Reference to message that will be removed.

Remarks

Remove method will remove specified messages from the mailbox file. However, contents of the mailbox will not be updated until you manually call Update method.

If current Message object represents part of another message, then it will remove specified part of the message. Same as before - you have to call Update to make actual changes in the mailbox file.

To see the difference,

mailbox.Remove(mailbox.Messages(3)) will remove 4th message from the mailbox

and

mailbox.Messages(3).Parts.Remove(mailbox.Messages(3).Parts(2)) will remove 3rd part from the 4th message.