0
|
1 --TEST--
|
|
2 Bug #17175 Content-Description support+ecoding
|
|
3 --SKIPIF--
|
|
4 --FILE--
|
|
5 <?php
|
|
6 require_once('Mail/mime.php');
|
|
7
|
|
8 $Mime = new Mail_Mime();
|
|
9 $Mime->setTXTBody('Test message.');
|
|
10 $Mime->addAttachment('test file contents', "text/plain",
|
|
11 'test.txt', FALSE, 'base64', NULL, 'UTF-8', NULL, NULL, NULL, NULL,
|
|
12 'desc');
|
|
13 $Mime->addAttachment('test file contents', "text/plain",
|
|
14 'test2.txt', FALSE, 'base64', NULL, 'UTF-8', NULL, NULL, NULL, NULL,
|
|
15 'test unicode żąśź');
|
|
16
|
|
17 $body = $Mime->getMessage();
|
|
18 preg_match_all('/Content-Description: (.*)/', $body, $matches);
|
|
19 foreach ($matches[1] as $value)
|
|
20 echo $value."\n";
|
|
21 ?>
|
|
22 --EXPECT--
|
|
23 desc
|
|
24 =?UTF-8?Q?test_unicode_=C5=BC=C4=85=C5=9B=C5=BA?=
|