2 ######################################################
4 # Test mhlist with extended parameters (RFC 2231)
6 ######################################################
10 test_skip "not implemented yet"
13 require_locale en_US.utf-8 en_US.utf8
19 # Make some more complicated message parameters.
24 To: recipient@example.com
25 From: sender@example.com
26 Subject: mhlist ext param test 2
28 Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa0"
31 Content-Type: text/plain; charset=us-ascii;
32 name*=utf-8''This%20%C3%AFs%20the%20filename
37 Content-Type: image/jpeg; name*3=" will it be?.jpg";
38 longparam*5*=Sp%C4%B1n%CC%88al%20Tap!;
39 longparam*2=It; name*1=if;
40 longparam*3=" Might be our Long Lost Band";
41 longparam*0*=UTF-8'en'I%20Cannot%20Believe%20It;
42 name*0="This is an example of a very long filename. I wonder ";
43 longparam*4*=%20The%20%C3%96ne%20And%20Only%20;
44 name*2=" this filename might be too long. It should not be. But";
45 longparam*1=", it Looks Like "
46 Content-Transfer-Encoding: base64
50 ------- =_aaaaaaaaaa0--
53 runandcheck 'mhlist l -verbose' <<!
54 msg part type/subtype size description
55 11 multipart/mixed 647
56 boundary="----- =_aaaaaaaaaa0"
59 name="This ïs the filename"
61 longparam="I Cannot Believe It, it Looks Like It Might be our Long Lost Band The Öne And Only Spın̈al Tap!"
62 name="This is an example of a very long filename. I wonder if this filename might be too long. It should not be. But will it be?.jpg"
69 # Write a message with some extended parameters
74 To: recipient@example.com
75 From: sender@example.com
76 Subject: mhlist ext param test 1
78 Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa0"
81 Content-Type: text/plain; charset=us-ascii;
82 name*=utf-8''This%20%C3%AFs%20the%20filename
87 Content-Type: image/jpeg;
88 name*0="This is an example of a very long filename. I wonder ";
90 name*2=" this filename might be too long. It should not be. But";
91 name*3=" will it be?.jpg"
92 Content-Disposition: attachment;
93 filename*0="This is an example of a very long filename. I wonder ";
95 filename*2=" this filename might be too long. It should not be. But";
96 filename*3=" will it be?.jpg"
97 Content-Transfer-Encoding: base64
101 ------- =_aaaaaaaaaa0--
104 # check to see if we decode parameters correctly.
106 runandcheck 'mhlist l -verbose -disposition' <<!
107 msg part type/subtype size description
108 11 multipart/mixed 637
109 boundary="----- =_aaaaaaaaaa0"
112 name="This ïs the filename"
114 name="This is an example of a very long filename. I wonder if this filename might be too long. It should not be. But will it be?.jpg"
115 disposition "attachment"
116 filename="This is an example of a very long filename. I wonder if this filename might be too long. It should not be. But will it be?.jpg"
120 # Test out message/external-body types, and also make sure we will correctly
121 # decode a URL wrapped with RFC 2017 rules.
126 To: recipient@example.com
127 From: sender@example.com
128 Subject: mhlist ext param test 3
130 Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa0"
132 ------- =_aaaaaaaaaa0
133 Content-Type: text/plain; charset=us-ascii;
134 name*=utf-8''This%20%C3%AFs%20the%20filename
138 ------- =_aaaaaaaaaa0
139 Content-Type: message/external-body; access-type="url";
140 url*1="/that/should-be-wrapped/image.jpeg";
141 url*0="http://www.kremvax.ru/this/is/an/example/of/a/very/long/url"
143 Content-Type: image/jpeg
144 Content-Description: Test of a long URL
145 Content-Disposition: attachment; filename=image.jpeg
147 ------- =_aaaaaaaaaa0
148 Content-Type: message/external-body; access-type="url";
149 url*0="http://www.kremvax.ru/this/is/an/example/of/a/very/long/url
150 /that/should-be-wrapped/image.jpeg"
152 Content-Type: image/jpeg
153 Content-Description: Test of a long URL
154 Content-Disposition: attachment; filename=image.jpeg
156 ------- =_aaaaaaaaaa0--
159 runandcheck 'mhlist l -verbose -disposition' <<!
160 msg part type/subtype size description
161 13 multipart/mixed 775
162 boundary="----- =_aaaaaaaaaa0"
165 name="This ïs the filename"
166 2 message/external-body 118
168 url="http://www.kremvax.ru/this/is/an/example/of/a/very/long/url/that/should-be-wrapped/image.jpeg"
169 url="http://www.kremvax.ru/this/is/an/example/of/a/very/long/url/that/should-be-wrapped/image.jpeg"
171 image/jpeg Test of a long URL
172 disposition "attachment"
173 filename="image.jpeg"
174 3 message/external-body 118
176 url="http://www.kremvax.ru/this/is/an/example/of/a/very/long/url /that/should-be-wrapped/image.jpeg"
177 url="http://www.kremvax.ru/this/is/an/example/of/a/very/long/url/that/should-be-wrapped/image.jpeg"
179 image/jpeg Test of a long URL
180 disposition "attachment"
181 filename="image.jpeg"