From 5b495cf619fd4be6e99baea7f0fafbf575f10931 Mon Sep 17 00:00:00 2001 From: matidau <65836048+matidau@users.noreply.github.com> Date: Sun, 18 Aug 2024 18:46:10 +1000 Subject: [PATCH] Wrong encoding, conversion from "unicode-1-1-utf-7" --- src/lib/utils/utils.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/utils/utils.php b/src/lib/utils/utils.php index 7d28e98d..837874db 100644 --- a/src/lib/utils/utils.php +++ b/src/lib/utils/utils.php @@ -1265,6 +1265,9 @@ private static function convertRawHeader2Utf8($nonencstr, $utf8str) { $str = ""; $striso2022jp = ""; foreach (@imap_mime_header_decode($nonencstr) as $val) { + if ($val->charset == "unicode-1-1-utf-7") { + $val->charset = "utf-7"; + } if (is_null($charset)) { $charset = strtolower($val->charset); }