|
|
@ -1871,14 +1871,18 @@ public class MessageHelper {
|
|
|
|
MimePart part = imessage;
|
|
|
|
MimePart part = imessage;
|
|
|
|
|
|
|
|
|
|
|
|
if (part.isMimeType("multipart/mixed")) {
|
|
|
|
if (part.isMimeType("multipart/mixed")) {
|
|
|
|
Multipart mp = (Multipart) part.getContent();
|
|
|
|
Object content = part.getContent();
|
|
|
|
for (int i = 0; i < mp.getCount(); i++) {
|
|
|
|
if (content instanceof Multipart) {
|
|
|
|
BodyPart bp = mp.getBodyPart(i);
|
|
|
|
Multipart mp = (Multipart) content;
|
|
|
|
if (bp.isMimeType("multipart/signed") || bp.isMimeType("multipart/encrypted")) {
|
|
|
|
for (int i = 0; i < mp.getCount(); i++) {
|
|
|
|
part = (MimePart) bp;
|
|
|
|
BodyPart bp = mp.getBodyPart(i);
|
|
|
|
break;
|
|
|
|
if (bp.isMimeType("multipart/signed") || bp.isMimeType("multipart/encrypted")) {
|
|
|
|
|
|
|
|
part = (MimePart) bp;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else
|
|
|
|
|
|
|
|
Log.e("Mixed type=" + (content == null ? null : content.getClass().getName()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (part.isMimeType("multipart/signed")) {
|
|
|
|
if (part.isMimeType("multipart/signed")) {
|
|
|
|