Improved error message

pull/194/head
M66B 4 years ago
parent 593d399252
commit 6fce3c8fdd

@ -2368,8 +2368,13 @@ public class MessageHelper {
parts.attachments.add(apart); parts.attachments.add(apart);
return parts; return parts;
} else } else {
Log.e(ct + " parts=" + multipart.getCount()); 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 } else
Log.e(ct.toString()); Log.e(ct.toString());
} else if (part.isMimeType("multipart/encrypted")) { } else if (part.isMimeType("multipart/encrypted")) {
@ -2381,8 +2386,13 @@ public class MessageHelper {
// Ignore header // Ignore header
getMessageParts(multipart.getBodyPart(1), parts, EntityAttachment.PGP_MESSAGE); getMessageParts(multipart.getBodyPart(1), parts, EntityAttachment.PGP_MESSAGE);
return parts; return parts;
} else } else {
Log.e(ct + " parts=" + multipart.getCount()); 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 } else
Log.e(ct.toString()); Log.e(ct.toString());
} else if (part.isMimeType("application/pkcs7-mime") || } else if (part.isMimeType("application/pkcs7-mime") ||

Loading…
Cancel
Save