Prevent removing spaces from subjects

pull/172/head
M66B 5 years ago
parent ebd315384a
commit f16fd13c06

@ -973,8 +973,8 @@ public class MessageHelper {
if (subject == null) if (subject == null)
return null; return null;
subject = subject.replaceAll("\\?=\\r?\\n\\s+=\\?", "\\?==\\?");
subject = MimeUtility.unfold(subject); subject = MimeUtility.unfold(subject);
subject = subject.replaceAll("\\?=\\s+=\\?", "\\?==\\?");
subject = new String(subject.getBytes(StandardCharsets.ISO_8859_1)); subject = new String(subject.getBytes(StandardCharsets.ISO_8859_1));
subject = decodeMime(subject); subject = decodeMime(subject);

Loading…
Cancel
Save