mirror of https://github.com/M66B/FairEmail.git
Decode subject before unfolding
This commit is contained in:
parent
9291dff9f7
commit
0cfd691017
|
@ -995,9 +995,9 @@ public class MessageHelper {
|
||||||
if (subject == null)
|
if (subject == null)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
|
subject = new String(subject.getBytes(StandardCharsets.ISO_8859_1));
|
||||||
subject = subject.replaceAll("\\?=\\r?\\n\\s+=\\?", "\\?==\\?");
|
subject = subject.replaceAll("\\?=\\r?\\n\\s+=\\?", "\\?==\\?");
|
||||||
subject = MimeUtility.unfold(subject);
|
subject = MimeUtility.unfold(subject);
|
||||||
subject = new String(subject.getBytes(StandardCharsets.ISO_8859_1));
|
|
||||||
subject = decodeMime(subject);
|
subject = decodeMime(subject);
|
||||||
|
|
||||||
return subject;
|
return subject;
|
||||||
|
|
Loading…
Reference in New Issue