Internet Direct (Indy) Version 9.0.2 Beta
TIdPOP3.RetrieveMailBoxSize
Gets the mailbox size on the POP3 server.

function RetrieveMailBoxSize: integer;
Returns
Integer - Mailbox size in bytes, or -1 on error.

Description
RetrieveMailBoxSize is an Integer function that retrieves the total size of the mailbox on the POP server. The value is returned in bytes. RetrieveMailBoxSize will return 0 when the mailbox is empty, or -1 when an exception is raised.

RetrieveMailBoxSize uses the POP3 LIST command to accumulate the total mailbox size from the values returned for individual messages.