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<server> 18smtp 19</server> 20 <name> 21SMTP multipart with transfer content encoders 22 </name> 23<stdin> 24From: different 25To: another 26 27body 28</stdin> 29 <command> 30smtp://%HOSTIP:%SMTPPORT/648 --mail-rcpt recipient@example.com --mail-from sender@example.com -F '=This is the e-mail inline text with a very long line containing the special character = and that should be split by encoder.;headers=Content-disposition: "inline";encoder=quoted-printable' -F "=@log/test648.txt;encoder=base64" -H "From: different" -H "To: another" 31</command> 32<file name="log/test648.txt"> 33This is an attached file. 34 35It may contain any type of data and will be encoded in base64 for transfer. 36</file> 37</client> 38 39# 40# Verify data after the test has been "shot" 41<verify> 42<strippart> 43s/^--------------------------[a-z0-9]*/------------------------------/ 44s/boundary=------------------------[a-z0-9]*/boundary=----------------------------/ 45</strippart> 46<protocol> 47EHLO 648 48MAIL FROM:<sender@example.com> 49RCPT TO:<recipient@example.com> 50DATA 51QUIT 52</protocol> 53<upload> 54Content-Type: multipart/mixed; boundary=---------------------------- 55Mime-Version: 1.0 56From: different 57To: another 58 59------------------------------ 60Content-Transfer-Encoding: quoted-printable 61Content-disposition: "inline" 62 63This is the e-mail inline text with a very long line containing the special= 64 character =3D and that should be split by encoder. 65------------------------------ 66Content-Disposition: attachment; filename="test648.txt" 67Content-Transfer-Encoding: base64 68 69VGhpcyBpcyBhbiBhdHRhY2hlZCBmaWxlLgoKSXQgbWF5IGNvbnRhaW4gYW55IHR5cGUgb2YgZGF0 70YSBhbmQgd2lsbCBiZSBlbmNvZGVkIGluIGJhc2U2NCBmb3IgdHJhbnNmZXIuCg== 71-------------------------------- 72. 73</upload> 74</verify> 75</testcase> 76