From 04850b50ba3d87949921dd01d65e3d8c2e576799 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 14 Jun 2017 12:30:34 +0200 Subject: [PATCH] Fix Disposition Notification title does not get correct translation, specifically for words with umlauts --- api/src/Mail/Imap.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/src/Mail/Imap.php b/api/src/Mail/Imap.php index eeae314bc1..a32a041756 100644 --- a/api/src/Mail/Imap.php +++ b/api/src/Mail/Imap.php @@ -159,6 +159,8 @@ class Imap extends Horde_Imap_Client_Socket implements Imap\Iface if (is_null($_timeout)) $_timeout = $this->params['acc_imap_timeout']?$this->params['acc_imap_timeout']:self::getTimeOut (); // Horde use locale for translation of error messages + // need to set LC_CTYPE for charachter classification (eg. Umlauts) + Api\Preferences::setlocale(LC_CTYPE); Api\Preferences::setlocale(LC_MESSAGES); // some plugins need extra measures to switch to an admin connection (eg. Dovecot constructs a special admin user name)