ftpserver.pl: make POP3 LIST serve content from the test file

instead of a fixed list in the test server.

Adjust test 853 accordingly.

Closes #14293
This commit is contained in:
Daniel Stenberg 2024-07-29 09:11:47 +02:00
parent a62dbf2310
commit ae0b08ae6e
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
2 changed files with 3 additions and 8 deletions

View File

@ -18,11 +18,11 @@ SLOWDOWN
</servercmd>
# When doing LIST, we get the default list output hard-coded in the test
# POP3 server
<datacheck>
<data>
1 100
2 4294967400
3 200
</datacheck>
</data>
</reply>
#

View File

@ -1862,12 +1862,7 @@ sub RETR_pop3 {
}
sub LIST_pop3 {
# This is a built-in fake-message list
my @data = (
"1 100\r\n",
"2 4294967400\r\n", # > 4 GB
"3 200\r\n",
);
my @data = getpart("reply", "data");
logmsg "retrieve a message list\n";