wodImapServer ActiveX Component - Remove Method
      
 

Description

Removes message from the collection.


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 ImapMessages.
Message Required. A Variant value. Reference to message that should be removed from the folder.

Remarks
Remove method will remove specified messages from the folder, but message itself will not be deleted from the disk.

If current Message object represents part of another message, then it will remove specified part of the message.

To see the difference,
 
Folder.Remove(Folder.Messages(3)) will remove 4th message from the folder
 
and
 
Folder.Messages(3).Parts.Remove(Folder.Messages(3).Parts(2)) will remove 3rd part from the 4th message (collection is zero based).