From 5edca4f4d3fd9894855bf5d271a2ee00cefebdab Mon Sep 17 00:00:00 2001 From: David Flatz Date: Mon, 8 Feb 2016 19:09:52 +0100 Subject: encode header with base64 when quoted-printable fails because of php bug #53891 --- tests/it_mail.t | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/it_mail.t b/tests/it_mail.t index 41ca3d1..486dee8 100755 --- a/tests/it_mail.t +++ b/tests/it_mail.t @@ -18,6 +18,12 @@ is( "Escape plain email in non-email headers" ); +is( + $mail->header_escape('search.ch e-mail code d\'accès'), + '=?utf-8?B?c2VhcmNoLmNoIGUtbWFpbCBjb2RlIGQnYWNjw6hz?=', + "Use base64 encoding when php iconv fails with quoted-printable (workaround for php bug #53891)" +); + is( $mail->addrlist_escape('Èxample User <èxample@example.com>', true), '=?utf-8?Q?=C3=88xample=20User?= <èxample@example.com>', -- cgit v1.2.3