* Experimental: When sending quoted-printable notification mails,

auto-split after 75 characters.
      (Ref: http://board.s9y.org/viewtopic.php?f=3&t=16314)
This commit is contained in:
Garvin Hicking 2010-01-27 15:04:17 +00:00
parent 7bfadb90b3
commit c03db71dc5
2 changed files with 5 additions and 1 deletions

View File

@ -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)

View File

@ -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']));