Extract content only from the signed part of multipart/signed messages
This commit is contained in:
parent
afc4febd5d
commit
2902657e5b
1 changed files with 5 additions and 0 deletions
|
@ -162,6 +162,11 @@ public class MessageExtractor {
|
||||||
Alternative alternative = new Alternative(text, html);
|
Alternative alternative = new Alternative(text, html);
|
||||||
outputViewableParts.add(alternative);
|
outputViewableParts.add(alternative);
|
||||||
}
|
}
|
||||||
|
} else if (isSameMimeType(part.getMimeType(), "multipart/signed")) {
|
||||||
|
if (multipart.getCount() > 0) {
|
||||||
|
BodyPart bodyPart = multipart.getBodyPart(0);
|
||||||
|
findViewablesAndAttachments(bodyPart, outputViewableParts, outputNonViewableParts);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// For all other multipart parts we recurse to grab all viewable children.
|
// For all other multipart parts we recurse to grab all viewable children.
|
||||||
for (Part bodyPart : multipart.getBodyParts()) {
|
for (Part bodyPart : multipart.getBodyParts()) {
|
||||||
|
|
Loading…
Reference in a new issue