mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 22:56:33 +02:00
Prevent sending sub attachments
This commit is contained in:
@@ -561,6 +561,9 @@ public class MessageHelper {
|
||||
imessage.addHeader("Auto-Submitted", "auto-replied");
|
||||
|
||||
List<EntityAttachment> attachments = db.attachment().getAttachments(message.id);
|
||||
for (EntityAttachment attachment : new ArrayList<>(attachments))
|
||||
if (attachment.subsequence != null)
|
||||
attachments.remove(attachment);
|
||||
|
||||
if (message.dsn == null || EntityMessage.DSN_NONE.equals(message.dsn)) {
|
||||
if (message.from != null && message.from.length > 0)
|
||||
|
||||
Reference in New Issue
Block a user