xref: /curl/tests/data/test648 (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 transfer content encoders
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 the email 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 "=@%LOGDIR/test%TESTNUMBER.txt;encoder=base64" -H "From: different" -H "To: another"
34</command>
35<file name="%LOGDIR/test%TESTNUMBER.txt">
36This is an attached file.
37
38It may contain any type of data and will be encoded in base64 for transfer.
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
54QUIT
55</protocol>
56<upload>
57Content-Type: multipart/mixed; boundary=----------------------------
58Mime-Version: 1.0
59From: different
60To: another
61
62------------------------------
63Content-Transfer-Encoding: quoted-printable
64Content-disposition: "inline"
65
66This is the email inline text with a very long line containing the special =
67character =3D and that should be split by encoder.
68------------------------------
69Content-Disposition: attachment; filename="test%TESTNUMBER.txt"
70Content-Transfer-Encoding: base64
71
72VGhpcyBpcyBhbiBhdHRhY2hlZCBmaWxlLgoKSXQgbWF5IGNvbnRhaW4gYW55IHR5cGUgb2YgZGF0
73YSBhbmQgd2lsbCBiZSBlbmNvZGVkIGluIGJhc2U2NCBmb3IgdHJhbnNmZXIuCg==
74--------------------------------
75.
76</upload>
77</verify>
78</testcase>
79