Account properly for quoted or 2047-encoded MIME parameters while walking headers...
[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 ****