SMTP
MULTIPART
#
# Server-side
#
# Client-side
smtp
SMTP multipart with file name escaping
From: different
To: another
body
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"'
#
# Verify data after the test has been "shot"
s/^--------------------------[a-z0-9]*/------------------------------/
s/boundary=------------------------[a-z0-9]*/boundary=----------------------------/
EHLO %TESTNUMBER
MAIL FROM:
RCPT TO:
DATA
QUIT
Content-Type: multipart/mixed; boundary=----------------------------
Mime-Version: 1.0
------------------------------
This is the mail text
------------------------------
Content-Disposition: attachment; filename="strange\\file\"name"
File content
--------------------------------
.