Response against the unknown command

Giganews Newsgroups
Subject: Response against the unknown command
Posted by:  Fumio Kawamata (fum…@my.email.ne.jp)
Date: Sat, 17 Mar 2007

Hello.

I am testing my POP3 proxy program.  It transfers commands and
responses between the MUA and the actual POP3 server.  It seems
well when the MUA sends the expected commands. (Of course, usual
MUA sends expected commands.)  However, my program replies two
lines response against the unknown command.  For example, it
replies
-ERR-Sorry, Unknown Command
-ERR TEST
when I send "TEST" from a terminal program.

I made a simple test program, only the TIdPOP3Server component
is on the form.  I have connected to this test program from a
terminal program, and send following commands.

CAPA
TEST
CAPA
CAPA
QUIT

The sequence is in below.

1 S: +OK Welcome to Indy POP3 Server
2 C: CAPA
3 S: +OK Capability list follows
4 S: USER
5 S: .
6 C: TEST
7 S: -ERR-Sorry, Unknown Command
8 C: CAPA
9 S: -ERR TEST
10 C: CAPA
11 S: +OK Capability list follows
12 S: USER
13 S: .
14 C: QUIT
15 S: +OK Capability list follows
(The connections was disconnected)

I think that the display of the 9th line is strange.
I am expecting the following sequence.  Am I wrong?

1 S: +OK Welcome to Indy POP3 Server
2 C: CAPA
3 S: +OK Capability list follows
4 S: USER
5 S: .
6 C: TEST
7 S: -ERR-Sorry, Unknown Command
8 C: CAPA
9 S: +OK Capability list follows
10 S: USER
11 S: .
12 C: CAPA
13 S: +OK Capability list follows
14 S: USER
15 S: .
16 C: QUIT
17 S: +OK

I am using
- Delphi 6 Professional Update Pack 2 (Japanese version)
- Indy 10.1.6 DevSnapshot on January 19th, 2007
- Terminal program: Tera Term Pro. Version 2.3

Regards.

Fumio Kawamata

--
Fumio Kawamata <fum…@my.email.ne.jp>

Replies