Prevent duplicate attachment sequence

This commit is contained in:
M66B 2022-04-20 14:38:42 +02:00
parent 071274088b
commit be464e5356
1 changed files with 1 additions and 1 deletions

View File

@ -846,7 +846,7 @@ public class EntityRule {
if (!resend && attached) {
EntityAttachment attachment = new EntityAttachment();
attachment.message = reply.id;
attachment.sequence = 1;
attachment.sequence = db.attachment().getAttachmentSequence(reply.id) + 1;
attachment.name = "email.eml";
attachment.type = "message/rfc822";
attachment.disposition = Part.ATTACHMENT;