• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 7bit encoder error
22 </name>
23<stdin>
24From: different
25To: another
26
27body
28</stdin>
29 <command>
30smtp://%HOSTIP:%SMTPPORT/649 --mail-rcpt recipient@example.com --mail-from sender@example.com -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">
33This is an attached file (in french: pièce jointe).
34
35It 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>
43s/^--------------------------[a-z0-9]*/------------------------------/
44s/boundary=------------------------[a-z0-9]*/boundary=----------------------------/
45</strippart>
46<protocol>
47EHLO 649
48MAIL FROM:<sender@example.com>
49RCPT TO:<recipient@example.com>
50DATA
51</protocol>
52<upload nonewline="yes">
53Content-Type: multipart/mixed; boundary=----------------------------
54Mime-Version: 1.0
55From: different
56To: another
57
58------------------------------
59Content-Transfer-Encoding: 7bit
60
61This is valid
62------------------------------
63Content-Disposition: attachment; filename="test649.txt"
64Content-Transfer-Encoding: 7bit
65
66This is an attached file (in french: pi
67</upload>
68<errorcode>
6926
70</errorcode>
71</verify>
72</testcase>
73