function
| Library: Email support, SMTP and POP3 (OMMAIL) Include: ommail.xin | Returns: the number of messages in the mailbox | 
define external integer function MailInBoxGetNumberOfMessages
           value MailInBox this-MailInBox
Argument definitions
This function returns the number of messages in the mailbox. A negative number will be returned if an error occurs.
set NumMsgs to MailInBoxGetNumberOfMessages MyBox