SASL issue with Courier-POP3d

Giganews Newsgroups
Subject: SASL issue with Courier-POP3d
Posted by:  Thomas Zangl (usen…@tzis.net)
Date: Mon, 20 Dec 2004

Hi!

I´ve got a problem with Courier POP3d and Indy recognizing SASL.

Here is the connection log:

Stat Connected.
Recv 20.12.2004 11:15:34: +OK Hello there.

Sent 20.12.2004 11:15:36: CAPA

Recv 20.12.2004 11:15:36: +OK Here's what I can do:
SASL LOGIN PLAIN
STLS
TOP
USER
LOGIN-DELAY 10
PIPELINING
UIDL
IMPLEMENTATION Courier Mail Server

----------------------------

As you can see the first line is "SASL LOGIN PLAIN". Well, Indy does not
recoginize the SASL line as it deletes the first line of the response here:

function TIdPOP3.CAPA: Boolean;
begin
  Result := SendCmd('CAPA','') = ST_OK;    {Do not Localize}
  if Result then
  begin
    IOHandler.Capture(FCapabilities);
  end;
  if FCapabilities.Count >0 then
  begin
    //dete the initial OK reply line
    // this is wrong as the first line
    // does not contain the OK but in my case
    // the SASL entries.
    FCapabilities.Delete(0);
  end;
  FHasCapa := Result;
  // ParseCapaReply(FCapabilities,'SASL');
end;

Please note that "FCapabilities.Delete(0);" deletes the SASL entries.
It seems the "+OK ...." line gets deleted somewhere else.

Best regards,

--
----------------------------------------------------------------
,yours Thomas Zangl -thom…@tzi.dhs.org- -TZ1-6BONE-
http://tzi.dhs.org -http://www.borg-kindberg.ac.at
Use YAMC! now! Get it athttp://www.borg-kindberg.ac.at/yamc/

Replies