function
| 
                
Library: Email support, SMTP and POP3 (OMMAIL)
 Include: ommail.xin  | 
              
 Returns: The length of the message.  | 
            
define external integer function MailInBoxGetMessageSize
           value MailInBox this-MailInBox
  message value integer message
Argument definitions
This function returns the length of the message indicated by number. A negative number will be returned if an error occurs.
do when MailInBoxGetMessageSize MyBox message 1 < 1000000 ... done