aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2015-05-26 17:56:17 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2015-05-26 17:57:48 +0200
commitaefa87b45b8843ed09048df265324c881b562936 (patch)
tree855b93dd90cc0d328f6333f4dccba3ab19e27f50
parentc4cf8972f3205a0018b9c06c031af76aa8ac7efe (diff)
downloadMail-aefa87b45b8843ed09048df265324c881b562936.zip
Mail-aefa87b45b8843ed09048df265324c881b562936.tar.gz
Mail-aefa87b45b8843ed09048df265324c881b562936.tar.bz2
Now we can use encoders in `formatHeaders`.
-rw-r--r--Content/Content.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/Content/Content.php b/Content/Content.php
index c9d2947..bd6d597 100644
--- a/Content/Content.php
+++ b/Content/Content.php
@@ -220,17 +220,15 @@ abstract class Content implements \ArrayAccess
$out = null;
foreach ($headers as $header => $value) {
- /*
$value = preg_replace_callback(
'#(?<value>[^<]+)(?<tail><[^>]+>)#',
- function ( Array $matches ) {
+ function (Array $matches) {
return
- static::qPrintEncode($matches['value']) .
+ Encoder\QuotedPrintable::encode($matches['value'], true) .
$matches['tail'];
},
$value
);
- */
$out .= $header . ': ' . $value . CRLF;
}