mirror of
https://github.com/curl/curl.git
synced 2026-08-02 21:30:28 +03:00
test1711: send a >64K mail with SMTP
A failed attempt to reproduce #18798 Closes #18861
This commit is contained in:
parent
aae18c4bdc
commit
a80dcb04e3
2 changed files with 52 additions and 1 deletions
51
tests/data/test1711
Normal file
51
tests/data/test1711
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue