POP3SecureSocket.MessageReceived
From Xojo Documentation
Event
POP3SecureSocket.MessageReceived(Index as Integer, Message as EmailMessage)
Supported for all project types and targets.
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.