1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 02:07:12 +00:00

Improved error message

This commit is contained in:
M66B 2021-02-09 16:18:35 +01:00
parent 593d399252
commit 6fce3c8fdd

View file

@ -2368,8 +2368,13 @@ public class MessageHelper {
parts.attachments.add(apart);
return parts;
} else
Log.e(ct + " parts=" + multipart.getCount());
} else {
StringBuilder sb = new StringBuilder();
sb.append(ct);
for (int i = 0; i < multipart.getCount(); i++)
sb.append(' ').append(i).append('=').append(multipart.getBodyPart(i).getContentType());
Log.e(sb.toString());
}
} else
Log.e(ct.toString());
} else if (part.isMimeType("multipart/encrypted")) {
@ -2381,8 +2386,13 @@ public class MessageHelper {
// Ignore header
getMessageParts(multipart.getBodyPart(1), parts, EntityAttachment.PGP_MESSAGE);
return parts;
} else
Log.e(ct + " parts=" + multipart.getCount());
} else {
StringBuilder sb = new StringBuilder();
sb.append(ct);
for (int i = 0; i < multipart.getCount(); i++)
sb.append(' ').append(i).append('=').append(multipart.getBodyPart(i).getContentType());
Log.e(sb.toString());
}
} else
Log.e(ct.toString());
} else if (part.isMimeType("application/pkcs7-mime") ||