Difference between revisions of "COUNTMAIL()"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) |
||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to return the number of messages on the currently connected mail server | Function to return the number of messages on the currently connected mail server | ||
− | |||
==Syntax== | ==Syntax== | ||
COUNTMAIL([<array>]) | COUNTMAIL([<array>]) | ||
− | |||
==See Also== | ==See Also== | ||
[[CLOSEMAIL()]], [[DELETEMAIL()]], [[MAILATTACH()]], [[MAILCLOSE()]], [[MAILCOUNT()]], [[MAILDELETE()]], [[MAILERROR()]], [[MAILHEADER()]], [[MAILNODENAME()]], [[MAILOPEN()]], [[MAILREAD()]], [[MAILSAVEAS()]], [[MAILSEND()]], [[MAILUSERNAME()]], [[OPENMAIL()]], [[READMAIL()]], [[SENDMAIL()]] | [[CLOSEMAIL()]], [[DELETEMAIL()]], [[MAILATTACH()]], [[MAILCLOSE()]], [[MAILCOUNT()]], [[MAILDELETE()]], [[MAILERROR()]], [[MAILHEADER()]], [[MAILNODENAME()]], [[MAILOPEN()]], [[MAILREAD()]], [[MAILSAVEAS()]], [[MAILSEND()]], [[MAILUSERNAME()]], [[OPENMAIL()]], [[READMAIL()]], [[SENDMAIL()]] | ||
− | |||
==Description== | ==Description== | ||
The COUNTMAIL() 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. | The COUNTMAIL() 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. | ||
− | |||
{| class="wikitable" | {| class="wikitable" | ||
Line 21: | Line 17: | ||
|- | |- | ||
|} | |} | ||
− | |||
− | |||
==Example== | ==Example== | ||
Line 33: | Line 27: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | |||
[[Category:Mail Functions]] | [[Category:Mail Functions]] |
Revision as of 09:21, 7 December 2012
Contents
Purpose
Function to return the number of messages on the currently connected mail server
Syntax
COUNTMAIL([<array>])
See Also
CLOSEMAIL(), DELETEMAIL(), MAILATTACH(), MAILCLOSE(), MAILCOUNT(), MAILDELETE(), MAILERROR(), MAILHEADER(), MAILNODENAME(), MAILOPEN(), MAILREAD(), MAILSAVEAS(), MAILSEND(), MAILUSERNAME(), OPENMAIL(), READMAIL(), SENDMAIL()
Description
The COUNTMAIL() 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 = countmail(message_size) ? value 6 ? message_size[1] 365