Re: Abort Retrieve

Giganews Newsgroups
Subject: Re: Abort Retrieve
Posted by:  Remy Lebeau \(Indy Team\) (
Date: Tue, 10 Oct 2006

"Sümer Cip" <sume…> wrote in message

> I am trying to abort retrieving of a message

The POP3 protocol does not support abortions.

> by raising an exception in the OnWork event of TIdPOP3. I use Indy 10.
> I can successfully abort the operation but the problema arises when
> I try to retrieve another message with the component.

You need to clear all of the pending unread data from the previous message.
There is no way to tell the POP3 server to stop sending it, so you have to
keep reading the message data, and then discard it.




In response to

Abort Retrieve posted by Sümer Cip on Tue, 10 Oct 2006