mirror of https://github.com/M66B/FairEmail.git
Fixed subject decoding in case of multiple MIME words
This commit is contained in:
parent
53976a426f
commit
36c6d7ef0c
|
@ -974,7 +974,7 @@ public class MessageHelper {
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
subject = MimeUtility.unfold(subject);
|
subject = MimeUtility.unfold(subject);
|
||||||
//subject = subject.replaceAll("\\?=\\s+=\\?", "\\?==\\?");
|
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);
|
||||||
|
|
||||||
|
@ -1116,7 +1116,6 @@ public class MessageHelper {
|
||||||
parts.add(new MimeTextPart(text.substring(i)));
|
parts.add(new MimeTextPart(text.substring(i)));
|
||||||
|
|
||||||
// Fold words to not break encoding
|
// Fold words to not break encoding
|
||||||
/*
|
|
||||||
int p = 0;
|
int p = 0;
|
||||||
while (p + 1 < parts.size()) {
|
while (p + 1 < parts.size()) {
|
||||||
MimeTextPart p1 = parts.get(p);
|
MimeTextPart p1 = parts.get(p);
|
||||||
|
@ -1128,7 +1127,6 @@ public class MessageHelper {
|
||||||
} else
|
} else
|
||||||
p++;
|
p++;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
for (MimeTextPart part : parts)
|
for (MimeTextPart part : parts)
|
||||||
|
|
Loading…
Reference in New Issue