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