Indy10 Pop3Server. Bad sequence of commands

Giganews Newsgroups
Subject: Indy10 Pop3Server. Bad sequence of commands
Posted by:  Pedro (pizquierdo20…@hotmail.com)
Date: Wed, 8 Jun 2005

Hello,

I'm working with Indy 10 and Delphi6.

I have programmed a server and my problem is with a client (it is programmed
with indy 9.0.11) and can be seen in following log of client.

This happens sometimes

My commentaries are preceded by //

08/06/2005 16:15:43 --> STAT<EOL>
08/06/2005 16:15:55 <-- +OK 16 114680<EOL>
08/06/2005 16:15:55 --> TOP 1 0<EOL>

// Pass a minute without responding the server
// The client get a Read Timeout and the client requests the following TOP 2

08/06/2005 16:16:55 --> TOP 2 0<EOL>

// The server Send the TOP1 ??? (and it is write in more lines in the log of
client)
08/06/2005 16:16:58 <-- +OK<EOL>  // this is +OK of TOP1
08/06/2005 16:16:58 <-- ...
08/06/2005 16:17:09 <-- <EOL>
08/06/2005 16:17:09 <-- .<EOL>

// The client thinks that she has received TOP 2 and asks for message 2
08/06/2005 16:17:09 --> RETR 2<EOL>
08/06/2005 16:17:53 <-- +OK<EOL>  // this id the +OK of TOP2 ???

// The server send the TOP2 ??? (and it is write in only one line in the log
of client)
08/06/2005 16:17:53 <-- Received: from ... <EOL><EOL>.<EOL>

// The client Delete a message and lost it.
08/06/2005 16:17:53 --> DELE 2<EOL>

08/06/2005 16:18:02 <-- +OK 36784 octets<EOL>  // Server answers RETR 2
08/06/2005 16:18:02 --> TOP 3 0<EOL>

// the rest of session is disordered
08/06/2005 16:18:02 --> TOP 3 0<EOL>
08/06/2005 16:18:02 <-- Received: from ...<EOL>
08/06/2005 16:18:02 --> TOP 4 0<EOL>
08/06/2005 16:18:02 <-- From: "xxxx1@xxx" <x…@xxx.xxx><EOL>

Please, How I can solve this? or, Can I detect this state and disconect the
client and not lost messages.

Please. Any suggestions would be really appreciated

Thanks and sorry my poor english.

Pedro.

Replies