POP.Delete() method

Giganews Newsgroups
Subject: POP.Delete() method
Posted by:  Tom (nospam@tmrl.net)
Date: Thu, 26 Jan 2006

Hi,
I'm using D7 and Indy 9.00.10.

In reference to the following code from the Indy demos:

  if lvHeaders.Selected <> nil then
      begin
        Showbusy(true);
        POP.Delete(lvHeaders.Selected.Index + 1);
        lvHeaders.Selected.ImageIndex := 3;
        Showbusy(false);
      end;

A basic question I have is if I wanted to delete half of the message off of
the server. Let's say every other email in the listview.
I would send the email's index via the delete method within a for loop.
What would happen if a new email(s) arrived before and/or during the delete
loop?  Could the wrong emails be delete?

TIA
Tom

Replies