Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Feb : Problem with POP3 messages deletion

www.cryer.info
Managed Newsgroup Archive

Problem with POP3 messages deletion

Subject:Problem with POP3 messages deletion
Posted by:"Salvatore Besso" (s.bes..@mclink.it)
Date:Tue, 15 Feb 2005 10:11:45

hello all,

Delphi 7.1.1 and Indy 9.0.18.

Before all the scenario. I have an anti spam program installed on my computer
that acts as a filter between the mail server and the mail client (Outlook
Express 6). Infact the client account must be modified to use localhost (or
127.0.0.1) as pop3 server. So far so good. Outlook deletes messages correctly.

Now I have written an application that uses a TIdPOP3 component to retrieve
messages and to elaborate them. Of course I have used localhost as pop3 server
in the application as well and it retrieves the messages passing through the
anti-spam application without problems. The problems arise when I have to delete
these messages. Since I log all operations, I've given a look to the log and the
messages seem to be correctly marked, this is a brief extract:

OK+: RETR 1
...
OK+: RETR 2
...
OK+: 1 MARKED FOR DELETION
...
OK+: 2 MARKED FOR DELETION
...
Disconnected

Well, when the TIdPOP3 component disconnects, I expect that the marked messages
are being deleted. Instead this is not the case. If I open the anti-spam program
the messages are still there. Please notice that when I retrieve messages with
Outlook, they are correctly deleted from the anti-spam buffer.

What I ask is: Is there any particular thing that I have missed or any property
that I have to set in TIdPOP3 component to make deletion successful? Since
Outlook works correctly, the anti-spam program should not be the source of the
problem.

Thanks a lot
Salvatore

Replies:

www.cryer.info
Managed Newsgroup Archive