diff --git a/docs/NEWS b/docs/NEWS index 18239cd0..1f98c04c 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,10 @@ Version 1.6 () ------------------------------------------------------------------------ + * Experimental: When sending quoted-printable notification mails, + auto-split after 75 characters. + (Ref: http://board.s9y.org/viewtopic.php?f=3&t=16314) + * Add new template variable to feed*.tpl files to support new plugins like pubsubhubbub, so that plugins can embed data to the main XML element (onli) diff --git a/include/functions.inc.php b/include/functions.inc.php index c841c6d4..ab75956b 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -533,7 +533,7 @@ function serendipity_sendMail($to, $subject, $message, $fromMail, $headers = NUL if (LANG_CHARSET == 'UTF-8') { if (function_exists('imap_8bit')) { $maildata['headers'][] = 'Content-Transfer-Encoding: quoted-printable'; - $maildata['message'] = str_replace("=\r\n", "", imap_8bit($maildata['message'])); + $maildata['message'] = imap_8bit($maildata['message']); } else { $maildata['headers'][] = 'Content-Transfer-Encoding: base64'; $maildata['message'] = chunk_split(base64_encode($maildata['message']));