## The `Deletemessage' method

Argument: Integer Scalar
Result: None

Valid for: GetMail

This method can be called to mark a message on the POP3 server for deletion. It takes a single argument, which is the index of the message to be deleted, in the range 1 to N, where N is the number of messages on the server (as returned by the `count` property, or the number of rows in the `messages` property).

The server will not actually delete the message until the session is successfully completed and you call the `Close` method. If an error occurs, or if the connection is lost, the message will be left untouched.

See also the `deleteonread` property, which allows you to specify that messages should automatically be marked for deletion when they are downloaded.

Topic: APLX Help : System Classes : Methods : Deletemessage

[ Previous | Next | Contents | Index ]