1<testcase> 2<info> 3<keywords> 4SMTP 5MULTIPART 6</keywords> 7</info> 8 9# 10# Server-side 11<reply> 12</reply> 13 14# 15# Client-side 16<client> 17<features> 18Mime 19</features> 20<server> 21smtp 22</server> 23<name> 24SMTP multipart with file name escaping 25</name> 26<stdin> 27From: different 28To: another 29 30body 31</stdin> 32<command> 33smtp://%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"' 34</command> 35</client> 36 37# 38# Verify data after the test has been "shot" 39<verify> 40<strippart> 41s/^--------------------------[A-Za-z0-9]*/------------------------------/ 42s/boundary=------------------------[A-Za-z0-9]*/boundary=----------------------------/ 43</strippart> 44<protocol> 45EHLO %TESTNUMBER 46MAIL FROM:<sender@example.com> 47RCPT TO:<recipient@example.com> 48DATA 49QUIT 50</protocol> 51<upload> 52Content-Type: multipart/mixed; boundary=---------------------------- 53Mime-Version: 1.0 54 55------------------------------ 56 57This is the mail text 58------------------------------ 59Content-Disposition: attachment; filename="strange\\file\"name" 60 61File content 62-------------------------------- 63. 64</upload> 65</verify> 66</testcase> 67