fix: trash early MDNs that reference no message

A report referencing no message can never be applied to one,
so it must not create a contact, a chat or a `last_seen` update
on its way to the trash.
This commit is contained in:
holger krekel
2026-08-22 02:49:03 +02:00
parent 08b2374fcf
commit 370cc5c1fd
3 changed files with 62 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
From: bob@example.net
To: alice@example.org
Subject: message opened
Date: Sun, 22 Mar 2020 23:37:57 +0000
Message-ID: <aranudiaerudiaduiaertd@example.com>
Content-Type: multipart/report; report-type=disposition-notification; boundary="SNIPP"
--SNIPP
Content-Type: text/plain; charset=utf-8
Read receipts do not guarantee sth. was read.
--SNIPP
Content-Type: message/disposition-notification
Original-Recipient: rfc822;bob@example.net
Final-Recipient: rfc822;bob@example.net
Disposition: automatic-action/MDN-sent-automatically; processed
--SNIPP--