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:
parent
8f2aeb2b3c
commit
d5886af1e2
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue