MIME: Support RFC2231 for filenames. Bug 466
[exim.git] / test / scripts / 4000-scanning / 4000
1 # mime boundaries
2 #
3 # This mail should be fine, if complex
4 #
5 exim -odi -bs
6 ehlo test.ex
7 mail from:<>
8 rcpt to:<userx@test.ex>
9 data
10 Date: Fri, 17 Dec 2004 14:35:01 +0100
11 From: J Caesar <jcaesar@test.ex>
12 To: a-list00@exim.org
13 Message-ID: <20041217133501.GA3058@test.ex>
14 Mime-Version: 1.0
15 Content-Type: multipart/mixed; boundary="T4sUOijqQbZv57TR"
16 Content-Disposition: inline
17 Subject: [exim] Re: Bug#286074: eximstats: uses message count as data for
18         the "volume" charts
19 X-BeenThere: a-list00@exim.org
20 X-Mailman-Version: 2.1.5
21 Precedence: list
22
23 --T4sUOijqQbZv57TR
24 Content-Type: text/plain; charset=US-ASCII
25 Content-Transfer-Encoding: quoted-printable
26 Content-Disposition: inline
27
28 Test quoted-printable =3D    
29 Space at end of line=40
30 Continued line =    
31 with this text.
32
33 --T4sUOijqQbZv57TR
34 Content-Type: text/plain; charset=us-ascii
35 Content-Disposition: inline
36
37 There was a part of the patch missing, complete one is attached.
38      sorry for wasting your time
39
40 --T4sUOijqQbZv57TR
41 Content-Type: text/plain; charset=us-ascii
42 Content-Disposition: attachment; filename=working-patch
43
44 --- /usr/sbin/eximstats 2004-12-17 13:36:44.381983753 +0100
45 +++ eximstats   2004-12-17 13:47:37.763185260 +0100
46 @@ -1107,11 +1107,11 @@
47    if (scalar @chartdatanames < $ntopchart)
48      {
49      push(@chartdatanames, $key);
50 -    push(@chartdatavals, $$m_count{$key});
51 +    push(@chartdatavals, $$m_data{$key});
52      }
53    else
54      {
55 -    $chartotherval += $$m_count{$key};
56 +    $chartotherval += $$m_data{$key};
57      }
58    }
59  push(@chartdatanames, "Other");
60
61 --T4sUOijqQbZv57TR
62 Content-Type: text/plain; charset="us-ascii"
63 MIME-Version: 1.0
64 Content-Transfer-Encoding: 7bit
65 Content-Disposition: inline
66
67 -- 
68
69 --T4sUOijqQbZv57TR--
70 .
71 quit
72 ****
73 #
74 #
75 # This one has a rotten parameter, but should not induce a crash
76 #
77 exim -odi -bs
78 ehlo test.ex
79 mail from:<>
80 rcpt to:<userx@test.ex>
81 data
82 Date: Fri, 17 Dec 2004 14:35:01 +0100
83 From: J Caesar <jcaesar@test.ex>
84 To: a-list00@exim.org
85 Message-ID: <20041217133501.GA3058@test.ex>
86 Mime-Version: 1.0
87 Content-Type: multipart/mixed; boundary="T4sUOijqQbZv57TR"
88 Content-Disposition: inline
89 Subject: Nasty
90
91 --T4sUOijqQbZv57TR
92 Content-Type: text/plain; charset=
93
94 foobar
95
96 --T4sUOijqQbZv57TR--
97 .
98 quit
99 ****
100 #
101 #
102 # This one has a different rotten parameter, but should not induce a crash
103 #
104 exim -odi -bs
105 ehlo test.ex
106 mail from:<>
107 rcpt to:<userx@test.ex>
108 data
109 Date: Fri, 17 Dec 2004 14:35:01 +0100
110 From: J Caesar <jcaesar@test.ex>
111 To: a-list00@exim.org
112 Message-ID: <20041217133501.GA3059@test.ex>
113 Mime-Version: 1.0
114 Content-Type: text/html;
115         charset=UTF-8;
116         name=""
117 Content-Disposition: inline
118 Subject: Nasty
119
120 --T4sUOijqQbZv57TR
121 Content-Type: text/plain;
122
123 foobar
124
125 --T4sUOijqQbZv57TR--
126 .
127 quit
128 ****
129 #
130 #
131 # This one has a 3rd rotten parameter style
132 #
133 exim -odi -bs
134 ehlo test.ex
135 mail from:<>
136 rcpt to:<userx@test.ex>
137 data
138 Date: Fri, 17 Dec 2004 14:35:01 +0100
139 From: J Caesar <jcaesar@test.ex>
140 To: a-list00@exim.org
141 Message-ID: <20041217133501.GA3059@test.ex>
142 Mime-Version: 1.0
143 Content-Type: text/plain; charset="utf-8""
144 Content-Disposition: inline
145 Subject: Nasty3
146
147 --T4sUOijqQbZv57TR
148 Content-Type: text/plain;
149
150 foobar
151
152 --T4sUOijqQbZv57TR--
153 .
154 quit
155 ****
156 #
157 #
158 # This one has a some unrecognised params
159 #
160 exim -odi -bs
161 ehlo test.ex
162 mail from:<>
163 rcpt to:<userx@test.ex>
164 data
165 Date: Fri, 17 Dec 2004 14:35:01 +0100
166 From: J Caesar <jcaesar@test.ex>
167 To: a-list00@exim.org
168 Message-ID: <20041217133501.GA3059@test.ex>
169 Mime-Version: 1.0
170 Content-Type: text/plain;
171         garbage1;
172         garbage2=foo;
173         garbage3="bar"foo;
174         charset=UTF-8;
175         garbage4=";
176 Content-Disposition: inline
177 Subject: Nasty4
178
179 --T4sUOijqQbZv57TR
180 Content-Type: text/plain;
181
182 foobar
183
184 --T4sUOijqQbZv57TR--
185 .
186 quit
187 ****
188 #
189 # This one has two attachments, using different encodings
190 exim -odi -bs
191 ehlo test.ex
192 mail from:<>
193 rcpt to:<userx@test.ex>
194 data
195 Date: Fri, 17 Dec 2004 14:35:01 +0100
196 Message-ID: <20041217133501.GA3058@test.ex>
197 Mime-Version: 1.0
198 Content-Type: multipart/mixed; boundary="T4sUOijqQbZv57TR"
199
200 --T4sUOijqQbZv57TR
201 Content-Type: text/plain; charset=us-ascii
202 Content-Disposition: attachment; filename="=?iso-8859-1?Q?test_=E4_test1?="
203
204 (content 1: filename is rfc2047 encoded)
205
206 --T4sUOijqQbZv57TR
207 Content-Type: text/plain; charset=us-ascii
208 Content-Disposition: attachment; filename*=ISO-8859-1''%74%65%73%74%20%E4%20%74%65%73%74%32
209
210 (content 2: filename is rfc2231 encoded)
211
212 --T4sUOijqQbZv57TR--
213 .
214 quit
215 ****