mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-28 02:37:16 +00:00
Fixed detecting encrypted messages
This commit is contained in:
parent
edf77ebeb6
commit
28580ee9f1
1 changed files with 6 additions and 3 deletions
|
@ -1712,10 +1712,13 @@ public class MessageHelper {
|
|||
contentType = new ContentType(Helper.guessMimeType(filename));
|
||||
}
|
||||
|
||||
if (!Part.ATTACHMENT.equalsIgnoreCase(disposition) && TextUtils.isEmpty(filename)) {
|
||||
if ("text/plain".equalsIgnoreCase(contentType.getBaseType()))
|
||||
boolean plain = "text/plain".equalsIgnoreCase(contentType.getBaseType());
|
||||
boolean html = "text/html".equalsIgnoreCase(contentType.getBaseType());
|
||||
if ((plain || html) &&
|
||||
!Part.ATTACHMENT.equalsIgnoreCase(disposition) && TextUtils.isEmpty(filename)) {
|
||||
if (plain)
|
||||
parts.plain.add(part);
|
||||
else if ("text/html".equalsIgnoreCase(contentType.getBaseType()))
|
||||
else if (html)
|
||||
parts.html.add(part);
|
||||
} else {
|
||||
AttachmentPart apart = new AttachmentPart();
|
||||
|
|
Loading…
Reference in a new issue