Archived
1
0

* 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 7d097ab317
commit 958c4c87ea
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -3,6 +3,10 @@
Version 1.6 () 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 * Add new template variable to feed*.tpl files to support new
plugins like pubsubhubbub, so that plugins can embed data to the plugins like pubsubhubbub, so that plugins can embed data to the
main XML element (onli) main XML element (onli)
+1 -1
View File
@@ -533,7 +533,7 @@ function serendipity_sendMail($to, $subject, $message, $fromMail, $headers = NUL
if (LANG_CHARSET == 'UTF-8') { if (LANG_CHARSET == 'UTF-8') {
if (function_exists('imap_8bit')) { if (function_exists('imap_8bit')) {
$maildata['headers'][] = 'Content-Transfer-Encoding: quoted-printable'; $maildata['headers'][] = 'Content-Transfer-Encoding: quoted-printable';
$maildata['message'] = str_replace("=\r\n", "", imap_8bit($maildata['message'])); $maildata['message'] = imap_8bit($maildata['message']);
} else { } else {
$maildata['headers'][] = 'Content-Transfer-Encoding: base64'; $maildata['headers'][] = 'Content-Transfer-Encoding: base64';
$maildata['message'] = chunk_split(base64_encode($maildata['message'])); $maildata['message'] = chunk_split(base64_encode($maildata['message']));