[tpop3d-discuss] tpop3d and Eudora problem

ZUKERAN, shin shin at opus.or.jp
Tue, 06 Aug 2002 02:07:13 +0900


Hello,

I found tpop3d's strange behaver.

When pop3 client send many commands on a packet, tpop3 server can't process all commands.
I found this problem with Eudora.  Eudora sends LIST and UIDL command first,
and Eudora sends many DELE and RETR command collectively.

I created the tiny patch. My problem was solved.
However, I do not know whether this correction is right. 
Is there any advice? 

diff -uNr tpop3d-1.4.2/connection.c tpop3d-1.4.2.new/connection.c
--- tpop3d-1.4.2/connection.c   Wed Jun 26 05:28:00 2002
+++ tpop3d-1.4.2.new/connection.c       Tue Aug  6 01:41:09 2002
@@ -256,7 +256,7 @@
                 
     /* now update the buffer */
     memmove(c->buffer, q, c->buffer + c->bufferlen - q);
-    c->p = c->buffer;
+    c->p -= (q - c->buffer);
 
     return pc;
 }

----
ZUKERAN, shin
shin@opus.or.jp