mirror of https://github.com/M66B/FairEmail.git
Use encrypted message part as message size
This commit is contained in:
parent
d287de8563
commit
e991634ef5
|
@ -1424,6 +1424,17 @@ public class MessageHelper {
|
||||||
else
|
else
|
||||||
size += (long) s;
|
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;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue