From afa19188719389e6b37e9b3f68a9f05d7b3f3a9d 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 31d55ba74e..b2229a9e58 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)