Possible error while headers handling. Example, original "Subject" field is:
=?UTF-8?B?0J7RgtCy0LXRgg==?= Re: =?UTF-8?B?0JAg0YLQsNC6PyDQvtGC?=
After posting, topic view:
ответ Re: =?UTF-8?B?0JAg0YLQsNC6PyDQvtGC?=
P.S. Patch for valid body & headers encoding:
include/scripts_common.inc:
function decode_string($str, $encoding, $charset='')
{
$s = '';
switch ($encoding)
{
case 'quoted-printable':
// Remove soft line breaks & decode
$s = quoted_printable_decode( preg_replace("!=\r?\n!", '', $str) );
break;
case 'base64':
$s = base64_decode( $str );
break;
default:
$s = $str;
break;
}
if( $charset )
{
$s = recode( "$charset..$FORUM_CHARSET", $s );
}
return $s;
}
function decode_header_value($val)
{
// ..skipped..
if ($ec_type == 'q')
{
$newval .= decode_string(str_replace('_', ' ', $m[5][$i]), 'quoted-printable', $m[3][$i]);
}
else if ($ec_type == 'b')
{
$newval .= decode_string($m[5][$i], 'base64', $m[3][$i]);
}
// ..skipped..
}
scripts/maillist.php:
function decode_message_body()
{
$this -> body = decode_string( $this -> body,
headers['content-transfer-encoding'],
$this->headers['__other_hdr__']['content-type']['charset']);
}