Consider images as attachments

This commit is contained in:
M66B 2018-09-18 09:19:15 +00:00
parent b137f5a2be
commit d7e8d10660
1 changed files with 3 additions and 1 deletions

View File

@ -441,7 +441,9 @@ public class MessageHelper {
filename = null;
}
if (Part.ATTACHMENT.equalsIgnoreCase(disposition) || !TextUtils.isEmpty(filename)) {
if (Part.ATTACHMENT.equalsIgnoreCase(disposition) ||
part.isMimeType("image/*") ||
!TextUtils.isEmpty(filename)) {
ContentType ct = new ContentType(part.getContentType());
String[] cid = part.getHeader("Content-ID");