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