mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-17 14:33:32 +02:00
Use encrypted message part as message size
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user