function
| Library: Email support, SMTP and POP3 (OMMAIL) Include: ommail.xin | Returns: True or false. | 
define external switch function MailInBoxIsOpen
           value MailInBox this-MailInBox
Argument definitions
This function returns true when the MailInBox is open, and false otherwise.
MailInBoxOpen MyBox unless MailInBoxIsOpen MyBox