1 --- dokuwiki/inc/mail.php~ 2009-11-10 15:32:16.000000000 +0200
2 +++ dokuwiki/inc/mail.php 2009-11-10 15:34:00.074347495 +0200
6 if(!utf8_isASCII($text)){
7 - $text = '=?UTF-8?Q?'.mail_quotedprintable_encode($text,0).'?=';
9 + // put the quotes outside as in =?UTF-8?Q?"Elan Ruusam=C3=A4e"?= vs "=?UTF-8?Q?Elan Ruusam=C3=A4e?="
10 + if (preg_match('/^"(.+)"$/', $text, $matches)) {
11 + $text = '"=?UTF-8?Q?'.mail_quotedprintable_encode($matches[1], 0).'?="';
13 + $text = '=?UTF-8?Q?'.mail_quotedprintable_encode($text, 0).'?=';
15 + // additionally the space character should be encoded as =20 (or each
16 + // word QP encoded separately).
17 + // however this is needed only in mail headers, not globally in mail_quotedprintable_encode().
18 + $text = str_replace(" ", "=20", $text);