test1711: send a >64K mail with SMTP

A failed attempt to reproduce #18798

Closes #18861
This commit is contained in:
Daniel Stenberg 2025-10-06 07:51:48 +02:00
parent aae18c4bdc
commit a80dcb04e3
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
2 changed files with 52 additions and 1 deletions

View 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 \
\

51
tests/data/test1711 Normal file
View File

@ -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
To: another
%repeat[5000 x test in body... ]%
</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
To: another
%repeat[5000 x test in body... ]%
.
</upload>
</verify>
</testcase>