mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-02 13:14:39 +00:00
Fixed decoding of subject
This commit is contained in:
parent
8fb7b47f10
commit
f39d973b1f
1 changed files with 5 additions and 6 deletions
|
@ -617,12 +617,11 @@ public class MessageHelper {
|
|||
subject = MimeUtility.unfold(subject);
|
||||
subject = new String(subject.getBytes(StandardCharsets.ISO_8859_1));
|
||||
|
||||
if (subject.startsWith("=?"))
|
||||
try {
|
||||
subject = MimeUtility.decodeText(subject);
|
||||
} catch (UnsupportedEncodingException ex) {
|
||||
Log.w(ex);
|
||||
}
|
||||
try {
|
||||
subject = MimeUtility.decodeText(subject);
|
||||
} catch (UnsupportedEncodingException ex) {
|
||||
Log.w(ex);
|
||||
}
|
||||
|
||||
subject = decodeMime(subject);
|
||||
|
||||
|
|
Loading…
Reference in a new issue