File: test647

package info (click to toggle)
curl 8.18.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 32,016 kB
  • sloc: ansic: 202,975; perl: 20,695; python: 10,293; sh: 6,684; makefile: 1,529; pascal: 239; cpp: 174
file content (92 lines) | stat: -rw-r--r-- 2,120 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?xml version="1.0" encoding="US-ASCII"?>
<testcase>
<info>
<keywords>
IMAP
APPEND
UPLOAD
MULTIPART
</keywords>
</info>

# Server-side
<reply>
</reply>

# Client-side
<client>
<features>
Mime
</features>
<server>
imap
</server>
<name>
IMAP APPEND multipart using mime API
</name>
<command>
imap://%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 %LTfoobar@example.com%GT"
-H "To: joe@example.com"
-H "Message-Id: %LTB27397-0100000@example.com%GT"
-H "Subject: afternoon meeting"
-u user:secret
</command>
<file name="%LOGDIR/test%TESTNUMBER.txt">
This is an attached file.

It may contain any type of data.
</file>
</client>

# Verify data after the test has been "shot"
<verify>
<strippart>
s/^--------------------------[A-Za-z0-9]*/------------------------------/
s/boundary=------------------------[A-Za-z0-9]*/boundary=----------------------------/
</strippart>
<protocol crlf="yes">
A001 CAPABILITY
A002 LOGIN user secret
A003 APPEND %TESTNUMBER (\Seen) {940}
A004 LOGOUT
</protocol>
<upload>
Content-Type: multipart/mixed; boundary=----------------------------%CR
Mime-Version: 1.0%CR
Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST)%CR
From: Fred Foobar %LTfoobar@example.com%GT%CR
To: joe@example.com%CR
Message-Id: %LTB27397-0100000@example.com%GT%CR
Subject: afternoon meeting%CR
%CR
------------------------------%CR
Content-Type: multipart/alternative; boundary=----------------------------%CR
%CR
------------------------------%CR
Content-Type: text/html%CR
Content-Transfer-Encoding: 8bit%CR
%CR
<body>This is the html version</body>%CR
------------------------------%CR
%CR
This is the plain text version%CR
--------------------------------%CR
%CR
------------------------------%CR
Content-Disposition: attachment; filename="test%TESTNUMBER.txt"%CR
%CR
This is an attached file.

It may contain any type of data.
%CR
--------------------------------%CR
</upload>
</verify>
</testcase>