Topic Path: Symbol Reference > Classes > TIdPOP3 Class > TIdPOP3 Methods > RetrieveMailBoxSize Method
ContentsIndexHome
PreviousUpNext
TIdPOP3.RetrieveMailBoxSize Method

Gets the mailbox size on the POP3 server.

function RetrieveMailBoxSize: integer;

Integer - Mailbox size in bytes, or -1 on error.

RetrieveMailBoxSize is an Integer function that retrieves the total size of the mailbox on the POP server. 

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

The return value is expressed in bytes and may contain 0 (zero) when the mailbox is empty, or -1 when an exception is raised. 

Use RetrieveMsgSize to get the number of bytes required to store a specific message number in the mailbox for the POP3 account.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.