Re: POP.Delete() method

Giganews Newsgroups
Subject: Re: POP.Delete() method
Posted by:  Remy Lebeau (TeamB) (
Date: Thu, 26 Jan 2006

"Tom" <> wrote in message

> I'm using D7 and Indy 9.00.10.

That is a very old build of Indy.  You should consider upgrading to the
9.0.50 snapshot.

> What would happen if a new email(s) arrived before
> and/or during the delete loop?

POP3 is a transactional protocol.  Once you successfully log into the
server, an exclusive access lock is applied to the mailbox until you
disconnect.  New messages cannot be placed into the mailbox, and existing
messages cannot be removed or altered, while the mailbox is locked.  Thus,
your loop is not effected by incoming messages.  They will arrive in the
mailbox after the mailbox is unlocked.




In response to

POP.Delete() method posted by Tom on Thu, 26 Jan 2006