MAILCOUNT()

From Recital Documentation Wiki
Revision as of 11:57, 23 March 2009 by Yvonnemilne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Class

Mail


Purpose

Function to return the number of messages on the currently connected mail server


Syntax

MAILCOUNT([<array>])


See Also

CLOSEMAIL(), COUNTMAIL(), DELETEMAIL(), MAILCLOSE(), MAILDELETE(), MAILERROR(), MAILHEADER(), MAILNODENAME(), MAILOPEN(), MAILREAD(), MAILSEND(), MAILUSERNAME(), OPENMAIL(), READMAIL(), SENDMAIL()


Description

The MAILCOUNT() function returns the number of messages on the connected mail server. If you are not connected to a mail server, it will return an error. You can use the MAILUSERNAME() (POP3 only) or MAILNODENAME() function to check if you are connected.


Parameters Required Default Description
<array> No None The name of an array to contain the size in bytes of each mail message. No pre-declaration is required.


Example

value = mailcount(message_size)
? value
         6
? message_size[1]
       365


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer