Thomas Hochstein a2ad0bd9b5 Fix mangling of auto-generated mails.
s9y will encode the body of its auto-generated
mails as quoted-printable when imap_8bit() is
available. imap_8bit() will use "\r\n" as
linebreaks as mandated for SMTP transfer.
The result will be transmitted via PHP's
mail() function, using direct SMTP on
Windows and piping it to a MTA on Unix.

Most MTAs will cope just fine with those
linebreaks, while qmail will not; it will
replace all "\n" linebreaks with "\r\n",
so we get "\r\r\n" in our case. We can't
"fix" qmail (as its maintainer, if there
even is one, does not consider this
behaviour wrong), but we can replace the
line endings we get from imap_8bit().

The fix does work with qmail and Exim and
should work with sendmail and Postfix and
other MTAs, too. It may break sending
mail on Windows (i.e. lose all linebreaks),
but I think that's acceptable, as we'll
have more qmail installation than Windows
servers out there.

A workaround could be to set
serendipity['forceBase64']=true in
serendipity_config_local.inc.php, but I'd
prefer this fix.

Fixes #644.

Backported from master branch.

Signed-off-by: Thomas Hochstein <thh@inter.net>
2019-10-13 18:08:59 +02:00
2016-01-26 16:42:27 +01:00
2019-08-17 13:57:54 +02:00
2017-01-02 09:42:37 +01:00
2008-12-09 10:41:48 +00:00
2016-05-19 14:27:16 +02:00
2019-04-27 18:36:23 +02:00
2018-07-18 11:23:02 +02:00
2019-04-27 18:31:25 +02:00
2014-12-10 14:34:54 +01:00

Serendipity - A reliable, secure & extensible PHP blog

Serendipity is a PHP-powered weblog engine which gives the user an easy way to maintain a blog. While the default package is designed for the casual blogger, Serendipity offers an expandable framework with the power for professional applications.

Description
幸運な偶然 - A PHP blog software // This was me trying to raise the PHP code to newer standards without breaking anything. Halfway in I've decided that S9Y is abandonware and went with WordPress.
Readme BSD-3-Clause 50 MiB
Languages
PHP 83.2%
Smarty 9.6%
CSS 4.5%
JavaScript 1.8%
HTML 0.7%
Other 0.1%