POP3Socket.ListMessages
From Xojo Documentation
Method
Requests a message listing. It fires the ListReceived event. It calls the ListReceived event handler.
Notes
This list consists of the message index and the size of the message. If no index is passed, it gets the entire list from the server. If a specific index is passed, it will return just the index message and size of the message.
This is equivalent to the POP3 LIST command.
Example
Me.ListMessages