From Xojo Documentation


POP3SecureSocket.MessageReceived(Index as Integer, Message as EmailMessage)

Supported for all project types and targets.

Executes when a message has been received from the mail server, in response to a call to RetrieveMessage. Index contains the index number of the retrieved message and the message contents is in Message.