Extract content only from the signed part of multipart/signed messages

This commit is contained in:
Vincent Breitmoser 2017-09-13 12:20:57 +02:00
parent afc4febd5d
commit 2902657e5b

View file

@ -162,6 +162,11 @@ public class MessageExtractor {
Alternative alternative = new Alternative(text, html);
outputViewableParts.add(alternative);
}
} else if (isSameMimeType(part.getMimeType(), "multipart/signed")) {
if (multipart.getCount() > 0) {
BodyPart bodyPart = multipart.getBodyPart(0);
findViewablesAndAttachments(bodyPart, outputViewableParts, outputNonViewableParts);
}
} else {
// For all other multipart parts we recurse to grab all viewable children.
for (Part bodyPart : multipart.getBodyParts()) {