summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2015-03-04 12:28:33 -0500
committerAleksander Machniak <alec@alec.pl>2015-03-04 12:28:33 -0500
commitf02fe3c3444a5ed7736ea532071269bb8f488fb8 (patch)
tree6e1d3d034614831bf704c59706785cad01b10640
parent6cdffbf1b603f827cca116e2b29716d68543aeb4 (diff)
Remove redundant encoding of message subject with mb_encode_mimeheader() (#1490295)
-rw-r--r--program/steps/mail/sendmail.inc8
1 files changed, 0 insertions, 8 deletions
diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc
index 9e674f773..5326d6452 100644
--- a/program/steps/mail/sendmail.inc
+++ b/program/steps/mail/sendmail.inc
@@ -505,14 +505,6 @@ $MAIL_MIME->setParam('head_charset', $message_charset);
$MAIL_MIME->setParam('html_charset', $message_charset);
$MAIL_MIME->setParam('text_charset', $text_charset);
-// encoding subject header with mb_encode provides better results with asian characters
-if (function_exists('mb_encode_mimeheader')) {
- mb_internal_encoding($message_charset);
- $headers['Subject'] = mb_encode_mimeheader($headers['Subject'],
- $message_charset, 'Q', "\r\n", 8);
- mb_internal_encoding(RCUBE_CHARSET);
-}
-
// pass headers to message object
$MAIL_MIME->headers($headers);