Re: Problem Command TOP IdPop3Server with Indy10

Giganews Newsgroups
Subject: Re: Problem Command TOP IdPop3Server with Indy10
Posted by:  Remy Lebeau (TeamB) (no.spam@no.spam.com)
Date: Thu, 29 Sep 2005

"Pedro" <pizquierdo20…@hotmail.com> wrote in message
news:5DDAD2E708DCE240pizquierdo20…@hotmail.com...

> Y=0 (all lines)

0 does not mean "all lines".  It means "no lines", in other words "send just
the headers and no message body".

> the server raise the exception "Invalid Syntax" and it is correct.

No, it is not correct.  0 is valid for the number of lines.  RFC 1939 says
that the number of lines has to be non-negative.  It does not say that it
cannot be 0 (0 is non-negative).  TIdPop3.RetreiveHeader() uses 0 for the
number of lines, for instance.

This bug has been fixed.  Download the latest snapshot within the next 24
hours (it may take that long for mirrors to see the changes).

> if omit Y the server raise an exception "List index out of bounds (1)"

That has also been fixed.  "Invalid Syntax" is now sent back instead.

Gambit

Replies

In response to

Problem Command TOP IdPop3Server with Indy10 posted by Pedro on Thu, 29 Sep 2005