From dcd082e1e2dc9ab3a8377e9f56c0b50085cec1ec Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 24 Sep 2024 07:55:08 +0200 Subject: [PATCH] Try parse com.sun.mail.imap.IMAPInputStream --- app/src/main/java/eu/faircode/email/MessageHelper.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index 18429e6245..c2715941b6 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -4988,6 +4988,8 @@ public class MessageHelper { if (content instanceof String) content = tryParseMultipart((String) content, part.getContentType()); + else if (content instanceof com.sun.mail.imap.IMAPInputStream) + content = tryParseMultipart(Helper.readStream((com.sun.mail.imap.IMAPInputStream) content), part.getContentType()); if (content instanceof Multipart) { Multipart mp = (Multipart) content; @@ -5029,6 +5031,8 @@ public class MessageHelper { if (content instanceof String) content = tryParseMultipart((String) content, part.getContentType()); + else if (content instanceof com.sun.mail.imap.IMAPInputStream) + content = tryParseMultipart(Helper.readStream((com.sun.mail.imap.IMAPInputStream) content), part.getContentType()); if (content instanceof Multipart) { Multipart multipart = (Multipart) content; @@ -5079,6 +5083,8 @@ public class MessageHelper { if (content instanceof String) content = tryParseMultipart((String) content, part.getContentType()); + else if (content instanceof com.sun.mail.imap.IMAPInputStream) + content = tryParseMultipart(Helper.readStream((com.sun.mail.imap.IMAPInputStream) content), part.getContentType()); if (content instanceof Multipart) { Multipart multipart = (Multipart) content; @@ -5196,6 +5202,8 @@ public class MessageHelper { if (content instanceof String) content = tryParseMultipart((String) content, part.getContentType()); + else if (content instanceof com.sun.mail.imap.IMAPInputStream) + content = tryParseMultipart(Helper.readStream((com.sun.mail.imap.IMAPInputStream) content), part.getContentType()); if (content instanceof Multipart) { multipart = (Multipart) content;