standard.net.mail.pop3_count_messages

pop3_count_messages is available since version 1.0.

Prototype:

number pop3_count_messages(number pop3_handle)

Parameters

pop3_handle
pop3 connection handle as returned by pop3_open or pop3_open_secured

Description:

Gets the number of messages on the POP3 server.

Return value:

Returns the number of messages on the POP3 server, or -1 if an error was encountered. To get that error you may call pop3_error.