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

Reset messages marked for deletion.

function Reset: Boolean;

Boolean - True on success, False on error.

Reset is a Boolean function that clears the deletion flag for any messages that have been marked for deletion. 

Reset performs the POP3 RSET command to remove the deletion flag for messages in the mailbox on the POP3 server. 

The return value for Reset will be True when the numeric result in LastCmdResult contains ST_OK. If an error occurs, the return value will be False. 

Message marked for deletion are physically removed when calling Disconnect. Use Reset prior to calling Disconnect to clear the deletion flags. 

Some POP3 servers do not support the POP3 RSET command.

TIdPOP3.Disconnect

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