HTML bodies do not have a filename

This commit is contained in:
M66B 2019-07-07 11:58:56 +02:00
parent e878a9fe2a
commit 377812ece9
1 changed files with 1 additions and 0 deletions

View File

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