1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 09:47:13 +00:00

Debug: MimePartDataSource encoding

This commit is contained in:
M66B 2024-09-14 12:26:24 +02:00
parent 8f2aeb2b3c
commit d5886af1e2

View file

@ -81,6 +81,12 @@ public class MimePartDataSource implements DataSource, MessageAware {
String encoding =
MimeBodyPart.restrictEncoding(part, part.getEncoding());
try {
eu.faircode.email.Log.i("MimePartDataSource encoding=" + encoding +
" name=" + part.getFileName());
} catch (Throwable ex) {
eu.faircode.email.Log.e(ex);
}
if (encoding != null)
return MimeUtility.decode(is, encoding);
else