| 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 |
<server> |
| 18 |
smtp |
| 19 |
</server> |
| 20 |
<name> |
| 21 |
SMTP multipart with 7bit encoder error |
| 22 |
</name> |
| 23 |
<stdin> |
| 24 |
From: different |
| 25 |
To: another |
| 26 |
|
| 27 |
body |
| 28 |
</stdin> |
| 29 |
<command> |
| 30 |
smtp://%HOSTIP:%SMTPPORT/649 --mail-rcpt [email protected] --mail-from [email protected] -F '=This is valid;encoder=7bit' -F "=@log/test649.txt;encoder=7bit" -H "From: different" -H "To: another" |
| 31 |
</command> |
| 32 |
<file name="log/test649.txt"> |
| 33 |
This is an attached file (in french: pièce jointe). |
| 34 |
|
| 35 |
It contains at least an 8-bit byte value. |
| 36 |
</file> |
| 37 |
</client> |
| 38 |
|
| 39 |
# |
| 40 |
# Verify data after the test has been "shot" |
| 41 |
<verify> |
| 42 |
<strippart> |
| 43 |
s/^--------------------------[a-z0-9]*/------------------------------/ |
| 44 |
s/boundary=------------------------[a-z0-9]*/boundary=----------------------------/ |
| 45 |
</strippart> |
| 46 |
<protocol> |
| 47 |
EHLO 649 |
| 48 |
MAIL FROM:<[email protected]> |
| 49 |
RCPT TO:<[email protected]> |
| 50 |
DATA |
| 51 |
</protocol> |
| 52 |
<upload nonewline="yes"> |
| 53 |
Content-Type: multipart/mixed; boundary=---------------------------- |
| 54 |
Mime-Version: 1.0 |
| 55 |
From: different |
| 56 |
To: another |
| 57 |
|
| 58 |
------------------------------ |
| 59 |
Content-Transfer-Encoding: 7bit |
| 60 |
|
| 61 |
This is valid |
| 62 |
------------------------------ |
| 63 |
Content-Disposition: attachment; filename="test649.txt" |
| 64 |
Content-Transfer-Encoding: 7bit |
| 65 |
|
| 66 |
This is an attached file (in french: pi |
| 67 |
</upload> |
| 68 |
<errorcode> |
| 69 |
26 |
| 70 |
</errorcode> |
| 71 |
</verify> |
| 72 |
</testcase> |