]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ftpserver.pl: make POP3 LIST serve content from the test file
authorDaniel Stenberg <daniel@haxx.se>
Mon, 29 Jul 2024 07:11:47 +0000 (09:11 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 29 Jul 2024 08:41:26 +0000 (10:41 +0200)
instead of a fixed list in the test server.

Adjust test 853 accordingly.

Closes #14293

tests/data/test853
tests/ftpserver.pl

index de5236420ddf2edffc613b56ac4f616bec4ae69c..3b57e7d08690aca5a285d6b21e4e2885f5c450c1 100644 (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\r
 2 4294967400\r
 3 200\r
-</datacheck>
+</data>
 </reply>
 
 #
index 282121d69d079a8c9cf84102b6431c958f93fdfb..3da888976ac3648e383dc8d96ebeb62814137064 100755 (executable)
@@ -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";