wodPop3Server ActiveX Control - Remove Method
      
 

Description

Removes message from 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 Pop3Messages.
Message Required. A Pop3Message object. Reference to existing message object.

Remarks

This method will remove specific Message from collection of all messages. Although this method exists - you should try not to use it. Reason for this is that you should carefully add messages from mailbox to Messages collection, and you shouldn't change this during connection lifetime.

In UpdateMailbox event, some messages may be needed to be deleted, because user marked them as deleted. Still, you should physically delete message file (or just this message from mailbox file), so when user connects next time he doesn't see this message. Since after UpdateMailbox contents of messages collection will be destroyed (not deleted!), you don't have to remove items manually.