mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-04 10:39:25 +00:00
Fixed decoding MIME texts
This commit is contained in:
parent
1e4a29d2a4
commit
336f0a2eee
1 changed files with 2 additions and 2 deletions
|
@ -688,7 +688,7 @@ public class MessageHelper {
|
||||||
return TextUtils.join(", ", formatted);
|
return TextUtils.join(", ", formatted);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String decodeMime(String text) {
|
static String decodeMime(String text) {
|
||||||
if (text == null)
|
if (text == null)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
|
@ -699,7 +699,7 @@ public class MessageHelper {
|
||||||
String decode = text.substring(s, e + 2);
|
String decode = text.substring(s, e + 2);
|
||||||
try {
|
try {
|
||||||
String decoded = MimeUtility.decodeText(decode);
|
String decoded = MimeUtility.decodeText(decode);
|
||||||
text = text.substring(0, i) + decoded + text.substring(e + 2);
|
text = text.substring(0, s) + decoded + text.substring(e + 2);
|
||||||
i += decoded.length();
|
i += decoded.length();
|
||||||
} catch (UnsupportedEncodingException ex) {
|
} catch (UnsupportedEncodingException ex) {
|
||||||
Log.w(ex);
|
Log.w(ex);
|
||||||
|
|
Loading…
Add table
Reference in a new issue