1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00
curl/tests/data/test853
Steve Holme 131649a121 ftpserver.pl: Corrected POP3 LIST as message numbers should be contiguous
The message numbers given in the LIST response are an index into the
list, which are only valid for the current session, rather than being a
unique message identifier. An index would only be missing from the LIST
response if a DELE command had been issued within the same session and
had not been committed by the end of session QUIT command. Once
committed the POP3 server will regenerate the message numbers in the
next session to be contiguous again. As such our LIST response should
list message numbers contiguously until we support a DELE command in the
same session.

Should a POP3 user require the unique message ID for any or all
messages then they should use the extended UIDL command. This command
will be supported by the test ftpserver in an upcoming commit.
2013-09-08 20:19:20 +01:00

52 lines
674 B
Plaintext

<testcase>
<info>
<keywords>
POP3
LIST
</keywords>
</info>
#
# Server-side
<reply>
# We use SLOWDOWN to really exercise the end-of-body parsing over multiple
# packets
<servercmd>
SLOWDOWN
</servercmd>
# When doing LIST, we get the default list output hard-coded in the test
# POP3 server
<datacheck>
1 100
2 4294967400
3 200
</datacheck>
</reply>
#
# Client-side
<client>
<server>
pop3
</server>
<name>
POP3 LIST messages from *SLOW* server
</name>
<command>
pop3://%HOSTIP:%POP3PORT/ -u user:secret
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
<protocol>
CAPA
USER user
PASS secret
LIST
QUIT
</protocol>
</verify>
</testcase>