POP3Socket.MessageCount
From Xojo Documentation
Event
Executes when the mail server replies to a CountMessages call and contains the number of messages in the mailbox.
Executes when the mail server replies to a CountMessages call and contains the number of messages in the mailbox.