Re: TIdSMTP Server Indy10

Giganews Newsgroups
Subject: Re: TIdSMTP Server Indy10
Posted by:  Remy Lebeau (TeamB) (no.spam@no.spam.com)
Date: Tue, 4 Apr 2006

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

> I have a SMTP server and i can allow messages with very long Lines.
>
> In the event OnUserLogin I have add this.
>
>      AContext.Connection.IOHandler.MaxLineAction:=maSplit;
>
> Is this correct?

All that will do is cause ReadLn() to return partial lines.  That can
potentially break the server.  If you really want to support long lines,
then you should loosen up the restrictions on line lengths by setting the
MaxLineLength property instead, ie:

    AContext.Connection.IOHandler.MaxLineLength := MaxInt;

Gambit

Replies

In response to

TIdSMTP Server Indy10 posted by Pedro on Tue, 4 Apr 2006