HTML bodies do not have a filename

pull/157/head
M66B 6 years ago
parent e878a9fe2a
commit 377812ece9

@ -1035,6 +1035,7 @@ public class MessageHelper {
// " content type=" + part.getContentType()); // " content type=" + part.getContentType());
if (!Part.ATTACHMENT.equalsIgnoreCase(disposition) && if (!Part.ATTACHMENT.equalsIgnoreCase(disposition) &&
TextUtils.isEmpty(filename) &&
((parts.plain == null && part.isMimeType("text/plain")) || ((parts.plain == null && part.isMimeType("text/plain")) ||
(parts.html == null && part.isMimeType("text/html")))) { (parts.html == null && part.isMimeType("text/html")))) {
if (part.isMimeType("text/plain")) if (part.isMimeType("text/plain"))

Loading…
Cancel
Save