property Message.Index as Long
Gets the index of the message on the server.

TypeDescription
Long A long expression that indicates the index of message on the server.

The Index property is not the index of the message in the messages collection. Use the Index property to identify the message on the server. For instance you can use the Index property to delete the message from the server using DELE command. See RFC 1939 for DELE command details.