From d5886af1e2cd80822c5a63b5afad3e32035ec5ee Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 14 Sep 2024 12:26:24 +0200 Subject: [PATCH] Debug: MimePartDataSource encoding --- .../main/java/javax/mail/internet/MimePartDataSource.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/javax/mail/internet/MimePartDataSource.java b/app/src/main/java/javax/mail/internet/MimePartDataSource.java index 0e481aef89..949d17c83f 100644 --- a/app/src/main/java/javax/mail/internet/MimePartDataSource.java +++ b/app/src/main/java/javax/mail/internet/MimePartDataSource.java @@ -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