2021-10-25 18:58:37 +08:00
<testcase>
<info>
<keywords>
SMTP
MULTIPART
</keywords>
</info>
#
# Server-side
<reply>
</reply>
#
# Client-side
<client>
2022-09-26 21:38:41 +08:00
<features>
Mime
</features>
2021-10-25 18:58:37 +08:00
<server>
smtp
</server>
2023-10-04 17:35:54 +08:00
<name>
2021-10-25 18:58:37 +08:00
SMTP multipart with file name escaping
2023-10-04 17:35:54 +08:00
</name>
2021-10-25 18:58:37 +08:00
<stdin>
From: different
To: another
body
</stdin>
2023-10-04 17:35:54 +08:00
<command>
2021-10-25 18:58:37 +08:00
smtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt recipient@example.com --mail-from sender@example.com -F "=This is the mail text" -F '=File content;filename="strange\file\"name"'
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
<strippart>
2023-09-12 18:51:21 +08:00
s/^--------------------------[A-Za-z0-9]*/------------------------------/
s/boundary=------------------------[A-Za-z0-9]*/boundary=----------------------------/
2021-10-25 18:58:37 +08:00
</strippart>
<protocol>
EHLO %TESTNUMBER
MAIL FROM:<sender@example.com>
RCPT TO:<recipient@example.com>
DATA
QUIT
</protocol>
<upload>
Content-Type: multipart/mixed; boundary=----------------------------
Mime-Version: 1.0
------------------------------
This is the mail text
------------------------------
Content-Disposition: attachment; filename="strange\\file\"name"
File content
--------------------------------
.
</upload>
</verify>
</testcase>