]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test1711: send a >64K mail with SMTP
authorDaniel Stenberg <daniel@haxx.se>
Mon, 6 Oct 2025 05:51:48 +0000 (07:51 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 6 Oct 2025 11:42:30 +0000 (13:42 +0200)
A failed attempt to reproduce #18798

Closes #18861

tests/data/Makefile.am
tests/data/test1711 [new file with mode: 0644]

index 5063e0210f42604db970947afbab52ae2212ac19..f2c698c674aae047b782dd11642954d1e025fa87 100644 (file)
@@ -228,7 +228,7 @@ test1670 test1671 \
 test1680 test1681 test1682 test1683 \
 \
 test1700 test1701 test1702 test1703 test1704 test1705 test1706 test1707 \
-test1708 test1709 test1710 \
+test1708 test1709 test1710 test1711 \
 \
 test1800 test1801 \
 \
diff --git a/tests/data/test1711 b/tests/data/test1711
new file mode 100644 (file)
index 0000000..077dd74
--- /dev/null
@@ -0,0 +1,51 @@
+<testcase>
+<info>
+<keywords>
+SMTP
+</keywords>
+</info>
+
+#
+# Server-side
+<reply>
+</reply>
+
+#
+# Client-side
+<client>
+<server>
+smtp
+</server>
+<name>
+Send >64K over SMTP
+</name>
+<file name="%LOGDIR/email%TESTNUMBER">
+From: different\r
+To: another\r
+\r
+%repeat[5000 x test in body... ]%\r
+</file>
+<command>
+smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -T %LOGDIR/email%TESTNUMBER
+</command>
+</client>
+
+#
+# Verify data after the test has been "shot"
+<verify>
+<protocol crlf="yes">
+EHLO %TESTNUMBER
+MAIL FROM:<sender@example.com>
+RCPT TO:<recipient@example.com>
+DATA
+QUIT
+</protocol>
+<upload>
+From: different\r
+To: another\r
+\r
+%repeat[5000 x test in body... ]%\r
+.\r
+</upload>
+</verify>
+</testcase>