From 2bd3a7c46e39e54a5df4bf433519f28203597b41 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 3 Feb 2021 18:40:54 +0100 Subject: [PATCH] Added logging --- .../main/java/eu/faircode/email/MessageHelper.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index d21d512c62..88f773a47c 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -2353,8 +2353,10 @@ public class MessageHelper { parts.attachments.add(apart); return parts; - } - } + } else + Log.e(ct + " parts=" + multipart.getCount()); + } else + Log.e(ct.toString()); } else if (part.isMimeType("multipart/encrypted")) { ContentType ct = new ContentType(part.getContentType()); String protocol = ct.getParameter("protocol"); @@ -2364,8 +2366,10 @@ public class MessageHelper { // Ignore header getMessageParts(multipart.getBodyPart(1), parts, EntityAttachment.PGP_MESSAGE); return parts; - } - } + } else + Log.e(ct + " parts=" + multipart.getCount()); + } else + Log.e(ct.toString()); } else if (part.isMimeType("application/pkcs7-mime") || part.isMimeType("application/x-pkcs7-mime")) { ContentType ct = new ContentType(part.getContentType());