MailInBoxGetNumberOfMessages

function

Library: Email support, SMTP and POP3 (OMMAIL)
Include: ommail.xin

Returns: the number of messages in the mailbox


Declaration
define external integer function MailInBoxGetNumberOfMessages
           value MailInBox this-MailInBox

Argument definitions

this-MailInBox
is an OMX component of type MailInBox.


Purpose

This function returns the number of messages in the mailbox. A negative number will be returned if an error occurs.

Example:


  set NumMsgs to MailInBoxGetNumberOfMessages MyBox