xref: /aosp_15_r20/external/curl/tests/data/test646 (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker<testcase>
2*6236dae4SAndroid Build Coastguard Worker<info>
3*6236dae4SAndroid Build Coastguard Worker<keywords>
4*6236dae4SAndroid Build Coastguard WorkerSMTP
5*6236dae4SAndroid Build Coastguard WorkerMULTIPART
6*6236dae4SAndroid Build Coastguard Worker</keywords>
7*6236dae4SAndroid Build Coastguard Worker</info>
8*6236dae4SAndroid Build Coastguard Worker
9*6236dae4SAndroid Build Coastguard Worker#
10*6236dae4SAndroid Build Coastguard Worker# Server-side
11*6236dae4SAndroid Build Coastguard Worker<reply>
12*6236dae4SAndroid Build Coastguard Worker</reply>
13*6236dae4SAndroid Build Coastguard Worker
14*6236dae4SAndroid Build Coastguard Worker#
15*6236dae4SAndroid Build Coastguard Worker# Client-side
16*6236dae4SAndroid Build Coastguard Worker<client>
17*6236dae4SAndroid Build Coastguard Worker<features>
18*6236dae4SAndroid Build Coastguard WorkerMime
19*6236dae4SAndroid Build Coastguard Worker</features>
20*6236dae4SAndroid Build Coastguard Worker<server>
21*6236dae4SAndroid Build Coastguard Workersmtp
22*6236dae4SAndroid Build Coastguard Worker</server>
23*6236dae4SAndroid Build Coastguard Worker<name>
24*6236dae4SAndroid Build Coastguard WorkerSMTP multipart using mime API
25*6236dae4SAndroid Build Coastguard Worker</name>
26*6236dae4SAndroid Build Coastguard Worker<stdin>
27*6236dae4SAndroid Build Coastguard WorkerFrom: different
28*6236dae4SAndroid Build Coastguard WorkerTo: another
29*6236dae4SAndroid Build Coastguard Worker
30*6236dae4SAndroid Build Coastguard Workerbody
31*6236dae4SAndroid Build Coastguard Worker</stdin>
32*6236dae4SAndroid Build Coastguard Worker<command>
33*6236dae4SAndroid Build Coastguard Workersmtp://%HOSTIP:%SMTPPORT/%TESTNUMBER --mail-rcpt [email protected] --mail-from [email protected] -F "=(;type=multipart/alternative" -F "= <body>This is the html version</body>;headers=X-test1: this is a header;type=text/html;headers=X-test2: this is another header " -F "=This is the plain text version;headers=@%LOGDIR/headers%TESTNUMBER" -F "=)" -F "=@%LOGDIR/test%TESTNUMBER.txt;headers=<%LOGDIR/headers%TESTNUMBER" -H "From: different" -H "To: another" -H "Reply-To: <[email protected]>"
34*6236dae4SAndroid Build Coastguard Worker</command>
35*6236dae4SAndroid Build Coastguard Worker<file1 name="%LOGDIR/test%TESTNUMBER.txt">
36*6236dae4SAndroid Build Coastguard WorkerThis is an attached file.
37*6236dae4SAndroid Build Coastguard Worker
38*6236dae4SAndroid Build Coastguard WorkerIt may contain any type of data.
39*6236dae4SAndroid Build Coastguard Worker</file1>
40*6236dae4SAndroid Build Coastguard Worker<file2 name="%LOGDIR/headers%TESTNUMBER">
41*6236dae4SAndroid Build Coastguard Worker# This line is a comment
42*6236dae4SAndroid Build Coastguard WorkerX-fileheader1: This is a header from a file
43*6236dae4SAndroid Build Coastguard Worker
44*6236dae4SAndroid Build Coastguard Worker# This line is another comment. It precedes a folded header.
45*6236dae4SAndroid Build Coastguard WorkerX-fileheader2: This is
46*6236dae4SAndroid Build Coastguard Worker#a
47*6236dae4SAndroid Build Coastguard Worker folded header
48*6236dae4SAndroid Build Coastguard Worker</file2>
49*6236dae4SAndroid Build Coastguard Worker</client>
50*6236dae4SAndroid Build Coastguard Worker
51*6236dae4SAndroid Build Coastguard Worker#
52*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot"
53*6236dae4SAndroid Build Coastguard Worker<verify>
54*6236dae4SAndroid Build Coastguard Worker<strippart>
55*6236dae4SAndroid Build Coastguard Workers/^--------------------------[A-Za-z0-9]*/------------------------------/
56*6236dae4SAndroid Build Coastguard Workers/boundary=------------------------[A-Za-z0-9]*/boundary=----------------------------/
57*6236dae4SAndroid Build Coastguard Worker</strippart>
58*6236dae4SAndroid Build Coastguard Worker<protocol>
59*6236dae4SAndroid Build Coastguard WorkerEHLO %TESTNUMBER
60*6236dae4SAndroid Build Coastguard WorkerMAIL FROM:<[email protected]>
61*6236dae4SAndroid Build Coastguard WorkerRCPT TO:<[email protected]>
62*6236dae4SAndroid Build Coastguard WorkerDATA
63*6236dae4SAndroid Build Coastguard WorkerQUIT
64*6236dae4SAndroid Build Coastguard Worker</protocol>
65*6236dae4SAndroid Build Coastguard Worker<upload>
66*6236dae4SAndroid Build Coastguard WorkerContent-Type: multipart/mixed; boundary=----------------------------
67*6236dae4SAndroid Build Coastguard WorkerMime-Version: 1.0
68*6236dae4SAndroid Build Coastguard WorkerFrom: different
69*6236dae4SAndroid Build Coastguard WorkerTo: another
70*6236dae4SAndroid Build Coastguard WorkerReply-To: <[email protected]>
71*6236dae4SAndroid Build Coastguard Worker
72*6236dae4SAndroid Build Coastguard Worker------------------------------
73*6236dae4SAndroid Build Coastguard WorkerContent-Type: multipart/alternative; boundary=----------------------------
74*6236dae4SAndroid Build Coastguard Worker
75*6236dae4SAndroid Build Coastguard Worker------------------------------
76*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html
77*6236dae4SAndroid Build Coastguard WorkerContent-Transfer-Encoding: 8bit
78*6236dae4SAndroid Build Coastguard WorkerX-test1: this is a header
79*6236dae4SAndroid Build Coastguard WorkerX-test2: this is another header
80*6236dae4SAndroid Build Coastguard Worker
81*6236dae4SAndroid Build Coastguard Worker<body>This is the html version</body>
82*6236dae4SAndroid Build Coastguard Worker------------------------------
83*6236dae4SAndroid Build Coastguard WorkerX-fileheader1: This is a header from a file
84*6236dae4SAndroid Build Coastguard WorkerX-fileheader2: This is #a folded header
85*6236dae4SAndroid Build Coastguard Worker
86*6236dae4SAndroid Build Coastguard WorkerThis is the plain text version
87*6236dae4SAndroid Build Coastguard Worker--------------------------------
88*6236dae4SAndroid Build Coastguard Worker
89*6236dae4SAndroid Build Coastguard Worker------------------------------
90*6236dae4SAndroid Build Coastguard WorkerContent-Disposition: attachment; filename="test%TESTNUMBER.txt"
91*6236dae4SAndroid Build Coastguard WorkerX-fileheader1: This is a header from a file
92*6236dae4SAndroid Build Coastguard WorkerX-fileheader2: This is #a folded header
93*6236dae4SAndroid Build Coastguard Worker
94*6236dae4SAndroid Build Coastguard WorkerThis is an attached file.
95*6236dae4SAndroid Build Coastguard Worker
96*6236dae4SAndroid Build Coastguard WorkerIt may contain any type of data.
97*6236dae4SAndroid Build Coastguard Worker
98*6236dae4SAndroid Build Coastguard Worker--------------------------------
99*6236dae4SAndroid Build Coastguard Worker.
100*6236dae4SAndroid Build Coastguard Worker</upload>
101*6236dae4SAndroid Build Coastguard Worker</verify>
102</testcase>
103