Prevent sending sub attachments

pull/212/head
M66B 1 year ago
parent 2b51a5c2f2
commit 9eeb406a28

@ -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)

Loading…
Cancel
Save