Try parse com.sun.mail.imap.IMAPInputStream

master
M66B 1 month ago
parent 657d89f014
commit dcd082e1e2

@ -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;

Loading…
Cancel
Save