1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 12:44:42 +00:00

Fixed ISO-2022-JP / Q encoding

This commit is contained in:
M66B 2024-06-27 21:26:58 +02:00
parent 0db20e8806
commit 2b406aaf09

View file

@ -3600,7 +3600,7 @@ public class MessageHelper {
MimeTextPart p1 = parts.get(p);
MimeTextPart p2 = parts.get(p + 1);
// https://bugzilla.mozilla.org/show_bug.cgi?id=1374149
if (!"ISO-2022-JP".equalsIgnoreCase(p1.charset) &&
if (!("ISO-2022-JP".equalsIgnoreCase(p1.charset) && "B".equalsIgnoreCase(p1.encoding)) &&
p1.charset != null && p1.charset.equalsIgnoreCase(p2.charset) &&
p1.encoding != null && p1.encoding.equalsIgnoreCase(p2.encoding) &&
p1.text != null && !p1.text.endsWith("=")) {