Internet Direct (Indy)
Home
PreviousUpNext
TIdPOP3.Reset Method

Reset messages marked for deletion.

Pascal
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

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.