mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-02 07:06:18 +02:00
Check append limit
This commit is contained in:
@@ -264,7 +264,6 @@ public class FragmentCompose extends FragmentBase {
|
||||
private static final int REDUCED_IMAGE_QUALITY = 90; // percent
|
||||
|
||||
private static final int RECIPIENTS_WARNING = 10;
|
||||
private static final int HEADERS_SIZE = 32 * 1024; // bytes
|
||||
|
||||
private static final int REQUEST_CONTACT_TO = 1;
|
||||
private static final int REQUEST_CONTACT_CC = 2;
|
||||
@@ -4283,7 +4282,7 @@ public class FragmentCompose extends FragmentBase {
|
||||
|
||||
// Check size
|
||||
if (identity != null && identity.max_size != null) {
|
||||
long size = HEADERS_SIZE + body.length();
|
||||
long size = MessageHelper.HEADERS_SIZE + body.length();
|
||||
for (EntityAttachment attachment : attachments)
|
||||
if (attachment.available)
|
||||
size += attachment.size;
|
||||
|
||||
Reference in New Issue
Block a user