## The `messages' property

Read-only, Nested Matrix

Valid for: GetMail

Once you have established a connection to a POP3 mail server using the `Open` method of a GetMail object, you can retrieve a list of the messages on the server by reading the `messages` property. This is a nested matrix, with one row per message.

The columns (in Index Origin 1) are:

1. The 'From' field, i.e. the sender of the message, as a character vector.
2. The 'To' field, i.e. the recipient or recipients of the message, as a character vector. If there are more than one, they will delimited by commas.
3. The 'Date' field, as a character vector, in the format 'Fri, 14 Jan 2005 10:31:00 +0000'.
4. The 'Subject' field, as a character vector.
5. The Size of the message in bytes, as an integer.
6. A Boolean scalar indicating whether the message has multiple parts.
7. The unique Message ID, as a character vector.

The messages are listed in order, so you can retrieve them by index position using the `GetMessage` or `GetSummary` methods. Message indices always start at 1, so the e-mail associated with the first row of the `messages` matrix can be retrieved as message number 1.

Topic: APLX Help : System Classes : Properties : messages

[ Previous | Next | Contents | Index ]