aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2015-05-26 17:21:04 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2015-05-26 17:33:47 +0200
commit0a796975f2b4c13099ba8bf1b34572da6e3855e2 (patch)
treed548d56ace4d2b998f0915976ef742280a4f0c72
parent22fa3e6dd9daa375c6599f85163967953245dfa2 (diff)
downloadMail-0a796975f2b4c13099ba8bf1b34572da6e3855e2.zip
Mail-0a796975f2b4c13099ba8bf1b34572da6e3855e2.tar.gz
Mail-0a796975f2b4c13099ba8bf1b34572da6e3855e2.tar.bz2
Text's content encoding is `quoted-printable`.
-rw-r--r--Content/Text.php4
-rw-r--r--Test/Unit/Content/Html.php1
-rw-r--r--Test/Unit/Content/Message.php1
-rw-r--r--Test/Unit/Content/Text.php3
4 files changed, 6 insertions, 3 deletions
diff --git a/Content/Text.php b/Content/Text.php
index 85d730f..910a9c9 100644
--- a/Content/Text.php
+++ b/Content/Text.php
@@ -64,8 +64,8 @@ class Text extends Content
public function __construct($content = null)
{
parent::__construct();
- unset($this['content-transfer-encoding']);
- $this['content-type'] = 'text/plain; charset=utf-8';
+ $this['content-transfer-encoding'] = 'quoted-printable';
+ $this['content-type'] = 'text/plain; charset=utf-8';
$this->append($content);
return;
diff --git a/Test/Unit/Content/Html.php b/Test/Unit/Content/Html.php
index d2ca818..db9f695 100644
--- a/Test/Unit/Content/Html.php
+++ b/Test/Unit/Content/Html.php
@@ -60,6 +60,7 @@ class Html extends Test\Unit\Suite
->then
->string($result)
->isEqualTo(
+ 'content-transfer-encoding: quoted-printable' . CRLF .
'content-disposition: inline' . CRLF .
'content-type: text/html; charset=utf-8' . CRLF .
CRLF .
diff --git a/Test/Unit/Content/Message.php b/Test/Unit/Content/Message.php
index ff6fc89..dd4712e 100644
--- a/Test/Unit/Content/Message.php
+++ b/Test/Unit/Content/Message.php
@@ -217,6 +217,7 @@ class Message extends Test\Unit\Suite
->string($result)
->isEqualTo(
'date: ' . $date . CRLF .
+ 'content-transfer-encoding: quoted-printable' . CRLF .
'content-disposition: inline' . CRLF .
'content-type: text/plain; charset=utf-8' . CRLF .
CRLF .
diff --git a/Test/Unit/Content/Text.php b/Test/Unit/Content/Text.php
index 85b7ec6..b6d3772 100644
--- a/Test/Unit/Content/Text.php
+++ b/Test/Unit/Content/Text.php
@@ -60,6 +60,7 @@ class Text extends Test\Unit\Suite
->then
->string($result)
->isEqualTo(
+ 'content-transfer-encoding: quoted-printable' . CRLF .
'content-disposition: inline' . CRLF .
'content-type: text/plain; charset=utf-8' . CRLF .
CRLF .
@@ -161,6 +162,6 @@ class Text extends Test\Unit\Suite
->when($result = $content->getFormattedContent(false))
->then
->string($result)
- ->isEqualTo('=?utf-8?Q?f=C3=B4=C3=B2b=C4=81r?=');
+ ->isEqualTo('f=C3=B4=C3=B2b=C4=81r');
}
}