Marks a message for deletion on the POP3 server.
function Delete( const MsgNum: Integer ): Boolean;
Parameters |
Description |
MsgNum |
Message number to be removed. |
Boolean - True when the result is wsOK.
Delete is a Boolean function that marks a message on the POP3 server for deletion using the message number specified in MsgNum. If a non-existent message number is used, an exception is raised.
Delete uses SendCmd to execute the POP DELE command that marks the indicated message number for deletion. Messages marked for deletion on the POP3 server will be physically removed when Disconnect is called. Use Reset to clear all message deletion marks anytime prior to calling Disconnect.
Delete returns True when the result for the operation, as indicated by LastCmdResult, contains the value ST_OK.
TIdPOP3.Disconnect TIdPOP3.Reset
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. |