mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Decode subject before unfolding
This commit is contained in:
@@ -995,9 +995,9 @@ public class MessageHelper {
|
||||
if (subject == null)
|
||||
return null;
|
||||
|
||||
subject = new String(subject.getBytes(StandardCharsets.ISO_8859_1));
|
||||
subject = subject.replaceAll("\\?=\\r?\\n\\s+=\\?", "\\?==\\?");
|
||||
subject = MimeUtility.unfold(subject);
|
||||
subject = new String(subject.getBytes(StandardCharsets.ISO_8859_1));
|
||||
subject = decodeMime(subject);
|
||||
|
||||
return subject;
|
||||
|
||||
Reference in New Issue
Block a user