1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 12:44:42 +00:00

Use encrypted message part as message size

This commit is contained in:
M66B 2020-04-12 09:24:24 +02:00
parent d287de8563
commit e991634ef5

View file

@ -1424,6 +1424,17 @@ public class MessageHelper {
else
size += (long) s;
}
for (EntityAttachment attachment : getAttachments())
if (attachment.size != null &&
(EntityAttachment.PGP_MESSAGE.equals(attachment.encryption) ||
EntityAttachment.SMIME_MESSAGE.equals(attachment.encryption) ||
EntityAttachment.SMIME_SIGNED_DATA.equals(attachment.encryption)))
if (size == null)
size = attachment.size;
else
size += attachment.size;
return size;
}