Decode subject before unfolding

pull/174/head
M66B 5 years ago
parent 9291dff9f7
commit 0cfd691017

@ -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;

Loading…
Cancel
Save