xref: /curl/tests/data/test649 (revision 3fd80c7b)
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 7bit encoder error
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 valid;encoder=7bit' -F "=@%LOGDIR/test%TESTNUMBER.txt;encoder=7bit" -H "From: different" -H "To: another"
34</command>
35<file name="%LOGDIR/test%TESTNUMBER.txt">
36This is an attached file (in french: pièce jointe).
37
38It contains at least an 8-bit byte value.
39</file>
40</client>
41
42#
43# Verify data after the test has been "shot"
44<verify>
45<strippart>
46s/^--------------------------[A-Za-z0-9]*/------------------------------/
47s/boundary=------------------------[A-Za-z0-9]*/boundary=----------------------------/
48</strippart>
49<protocol>
50EHLO %TESTNUMBER
51MAIL FROM:<sender@example.com>
52RCPT TO:<recipient@example.com>
53DATA
54</protocol>
55<upload nonewline="yes">
56Content-Type: multipart/mixed; boundary=----------------------------
57Mime-Version: 1.0
58From: different
59To: another
60
61------------------------------
62Content-Transfer-Encoding: 7bit
63
64This is valid
65------------------------------
66Content-Disposition: attachment; filename="test%TESTNUMBER.txt"
67Content-Transfer-Encoding: 7bit
68
69This is an attached file (in french: pi
70</upload>
71<errorcode>
7226
73</errorcode>
74</verify>
75</testcase>
76