wodPop3Server ActiveX Control - Messages Property
      
 

Description

References collection of messages for this user.


Property type

A Pop3Messages object.  


Syntax

object.Messages



The Messages Property syntax has these parts:

Part Description
object An expression evaluating to an object of type Pop3User.

Remarks

Messages property holds reference to Pop3Messages object, which holds information about all messages that will be visible to connected user. This collection should be fully maintained by you and your application.

This means:

  • you must add all the messages from mailbox during Connected event
  • you must check for Deleted messages in UpdateMailbox event
  • you should access message items if there's need to during connection lifetime (usually not necessary)

When user disconnect from server (after UpdateMailbox event is fired), wodPop3Server will destroy messages collection, thus releasing all the messages in the collection. You don't have to manually remove messages from collection, this will be done automatically. Please note that word 'destroy' doesn't mean files with messages will be deleted - this will happen only if they are temporary, automatically created by wodPopServer.