Revert "Fixed double decode subject"

This reverts commit e3b9d9e599.
pull/174/head
M66B 5 years ago
parent af55b0bbaf
commit 9291dff9f7

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