Skip to content
This repository was archived by the owner on Dec 11, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,14 @@ else if(contentType.matches("text/html.*"))
{
mockMail.setBodyHtml(convertStreamToString(bodyPart.getInputStream()));
}
else if(contentType.contains("multipart"))
{
// Loop if the content type is multipart then get the content that is in that part,
// make it the new container and restart the loop in that part of the message.
multipart = (Multipart)bodyPart.getContent();
i = -1;
continue;
}
}
}
else if(messageContent instanceof InputStream)
Expand Down