Fixed double decode subject

pull/174/head
M66B 5 years ago
parent 8c2850ffe4
commit e3b9d9e599

@ -995,9 +995,10 @@ public class MessageHelper {
if (subject == null)
return null;
// https://github.com/eclipse-ee4j/mail/issues/423
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