Problem Command TOP IdPop3Server with Indy10

Giganews Newsgroups
Subject: Problem Command TOP IdPop3Server with Indy10
Posted by:  Pedro (pizquierdo20…@hotmail.com)
Date: Thu, 29 Sep 2005

Hi,

I'm working with Indy10 (last SnapShot) and Delphi 6.

I have programmed a POP 3 server and the problen is when the client Pop
sends TOP X Y

X=Number of message.
Y=Number of lines.

if Y=0 (all lines) the server raise the exception "Invalid Syntax" and it is
correct. Example: TOP 1 0

if omit Y the server raise an exception "List index out of bounds (1)" and
it is correct. Example: TOP 1

Thank
Pedro.

Replies