mirror of
https://github.com/curl/curl.git
synced 2025-04-18 16:30:45 +08:00
Some POP3 commands are multi-line, e.g. have responses terminated by a last line with '.', but some are not. Define the known command properties and fix response handling. Add test case for STAT. Fixes #14677 Reported-by: ralfjunker on github Closes #14707
48 lines
510 B
Plaintext
48 lines
510 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
POP3
|
|
Clear Text
|
|
STAT
|
|
CUSTOMREQUEST
|
|
RFC2449
|
|
</keywords>
|
|
</info>
|
|
|
|
#
|
|
# Server-side
|
|
<reply>
|
|
<servercmd>
|
|
CAPA TOP USER
|
|
</servercmd>
|
|
<data>
|
|
</data>
|
|
</reply>
|
|
|
|
#
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
pop3
|
|
</server>
|
|
<name>
|
|
POP3 retrieve STAT (CUSTOMREQUEST)
|
|
</name>
|
|
<command>
|
|
pop3://%HOSTIP:%POP3PORT -u user:secret -X 'STAT'
|
|
</command>
|
|
</client>
|
|
|
|
#
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<protocol>
|
|
CAPA
|
|
USER user
|
|
PASS secret
|
|
STAT
|
|
QUIT
|
|
</protocol>
|
|
</verify>
|
|
</testcase>
|