xref: /aosp_15_r20/external/curl/tests/data/test647 (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker<testcase>
2*6236dae4SAndroid Build Coastguard Worker<info>
3*6236dae4SAndroid Build Coastguard Worker<keywords>
4*6236dae4SAndroid Build Coastguard WorkerIMAP
5*6236dae4SAndroid Build Coastguard WorkerAPPEND
6*6236dae4SAndroid Build Coastguard WorkerMULTIPART
7*6236dae4SAndroid Build Coastguard Worker</keywords>
8*6236dae4SAndroid Build Coastguard Worker</info>
9*6236dae4SAndroid Build Coastguard Worker
10*6236dae4SAndroid Build Coastguard Worker#
11*6236dae4SAndroid Build Coastguard Worker# Server-side
12*6236dae4SAndroid Build Coastguard Worker<reply>
13*6236dae4SAndroid Build Coastguard Worker</reply>
14*6236dae4SAndroid Build Coastguard Worker
15*6236dae4SAndroid Build Coastguard Worker#
16*6236dae4SAndroid Build Coastguard Worker# Client-side
17*6236dae4SAndroid Build Coastguard Worker<client>
18*6236dae4SAndroid Build Coastguard Worker<features>
19*6236dae4SAndroid Build Coastguard WorkerMime
20*6236dae4SAndroid Build Coastguard Worker</features>
21*6236dae4SAndroid Build Coastguard Worker<server>
22*6236dae4SAndroid Build Coastguard Workerimap
23*6236dae4SAndroid Build Coastguard Worker</server>
24*6236dae4SAndroid Build Coastguard Worker<name>
25*6236dae4SAndroid Build Coastguard WorkerIMAP APPEND multipart using mime API
26*6236dae4SAndroid Build Coastguard Worker</name>
27*6236dae4SAndroid Build Coastguard Worker<command>
28*6236dae4SAndroid Build Coastguard Workerimap://%HOSTIP:%IMAPPORT/%TESTNUMBER -F "=(;type=multipart/alternative" -F "= <body>This is the html version</body>;type=text/html" -F "=This is the plain text version" -F "=)" -F "=@%LOGDIR/test%TESTNUMBER.txt" -H "Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST)" -H "From: Fred Foobar <[email protected]>" -H "To: [email protected]" -H "Message-Id: <[email protected]>" -H "Subject: afternoon meeting" -u user:secret
29*6236dae4SAndroid Build Coastguard Worker</command>
30*6236dae4SAndroid Build Coastguard Worker<file name="%LOGDIR/test%TESTNUMBER.txt">
31*6236dae4SAndroid Build Coastguard WorkerThis is an attached file.
32*6236dae4SAndroid Build Coastguard Worker
33*6236dae4SAndroid Build Coastguard WorkerIt may contain any type of data.
34*6236dae4SAndroid Build Coastguard Worker</file>
35*6236dae4SAndroid Build Coastguard Worker</client>
36*6236dae4SAndroid Build Coastguard Worker
37*6236dae4SAndroid Build Coastguard Worker#
38*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot"
39*6236dae4SAndroid Build Coastguard Worker<verify>
40*6236dae4SAndroid Build Coastguard Worker<strippart>
41*6236dae4SAndroid Build Coastguard Workers/^--------------------------[A-Za-z0-9]*/------------------------------/
42*6236dae4SAndroid Build Coastguard Workers/boundary=------------------------[A-Za-z0-9]*/boundary=----------------------------/
43*6236dae4SAndroid Build Coastguard Worker</strippart>
44*6236dae4SAndroid Build Coastguard Worker<protocol>
45*6236dae4SAndroid Build Coastguard WorkerA001 CAPABILITY
46*6236dae4SAndroid Build Coastguard WorkerA002 LOGIN user secret
47*6236dae4SAndroid Build Coastguard WorkerA003 APPEND %TESTNUMBER (\Seen) {940}
48*6236dae4SAndroid Build Coastguard WorkerA004 LOGOUT
49*6236dae4SAndroid Build Coastguard Worker</protocol>
50*6236dae4SAndroid Build Coastguard Worker<upload>
51*6236dae4SAndroid Build Coastguard WorkerContent-Type: multipart/mixed; boundary=----------------------------
52*6236dae4SAndroid Build Coastguard WorkerMime-Version: 1.0
53*6236dae4SAndroid Build Coastguard WorkerDate: Mon, 7 Feb 1994 21:52:25 -0800 (PST)
54*6236dae4SAndroid Build Coastguard WorkerFrom: Fred Foobar <[email protected]>
55*6236dae4SAndroid Build Coastguard WorkerTo: [email protected]
56*6236dae4SAndroid Build Coastguard WorkerMessage-Id: <[email protected]>
57*6236dae4SAndroid Build Coastguard WorkerSubject: afternoon meeting
58*6236dae4SAndroid Build Coastguard Worker
59*6236dae4SAndroid Build Coastguard Worker------------------------------
60*6236dae4SAndroid Build Coastguard WorkerContent-Type: multipart/alternative; boundary=----------------------------
61*6236dae4SAndroid Build Coastguard Worker
62*6236dae4SAndroid Build Coastguard Worker------------------------------
63*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html
64*6236dae4SAndroid Build Coastguard WorkerContent-Transfer-Encoding: 8bit
65*6236dae4SAndroid Build Coastguard Worker
66*6236dae4SAndroid Build Coastguard Worker<body>This is the html version</body>
67*6236dae4SAndroid Build Coastguard Worker------------------------------
68*6236dae4SAndroid Build Coastguard Worker
69*6236dae4SAndroid Build Coastguard WorkerThis is the plain text version
70*6236dae4SAndroid Build Coastguard Worker--------------------------------
71*6236dae4SAndroid Build Coastguard Worker
72*6236dae4SAndroid Build Coastguard Worker------------------------------
73*6236dae4SAndroid Build Coastguard WorkerContent-Disposition: attachment; filename="test%TESTNUMBER.txt"
74*6236dae4SAndroid Build Coastguard Worker
75*6236dae4SAndroid Build Coastguard WorkerThis is an attached file.
76*6236dae4SAndroid Build Coastguard Worker
77*6236dae4SAndroid Build Coastguard WorkerIt may contain any type of data.
78*6236dae4SAndroid Build Coastguard Worker
79*6236dae4SAndroid Build Coastguard Worker--------------------------------
80*6236dae4SAndroid Build Coastguard Worker</upload>
81*6236dae4SAndroid Build Coastguard Worker</verify>
82*6236dae4SAndroid Build Coastguard Worker</testcase>
83