After a reply is sent, the tool must prove that a stored copy is the reply's own. One part of the proof: the quoted mail must end with the original's last words.
It ends with a picture.
Mail replaces the picture with a text marker. Mail writes it as a hidden element with the id cid:….
Last words found: yes
Nothing after them: no ("logopng" follows)
Result: "not sure" (unproven). Nothing is deleted.
| Option | The tool's own copy | A draft you wrote by hand, with <x.png> typed below the quote | If Mail changes its marker one day |
|---|---|---|---|
| A. Ignore only Mail's own markerrecommended the element with id cid:… | proven: cleaned or reported clean | "not sure": left alone. Typed text is not Mail's element. | back to "not sure": safe, only less helpful |
| B. Ignore any text like <name.ext> | proven | can pass as the tool's copy: your draft could be deleted | still works |
| C. No change, document it | "not sure" after each reply to a mail that ends with a picture (logo signatures) | "not sure": left alone | no effect |
Picture in one line: the cleaner may ignore the label that Mail itself glued on (A), any label that looks like it (B), or no label (C).
New tonight: after a send, a mail in an INBOX with the same Message-ID as the proven Sent copy counts as "the delivered copy" and is set aside. That rule assumes an INBOX never holds a draft. Nobody tested that.
Each mail server adds a Received: line. It is the postmark.
Set it aside. This is the reply that came back to you.
Only possible when an account uses its INBOX as its Drafts mailbox, and Mail's autosave keeps the same Message-ID.
Today's rule sets it aside too, and the tool reports "no copy left" although one is left. It deletes nothing wrong.
| Option | Delivered mail in the INBOX | Leftover draft in the INBOX (unusual setup) | Cost |
|---|---|---|---|
| Add the postmark checkrecommended set aside only with a Received: line | set aside | "not sure": reported, as it should be | a few lines and one test, in the same PR |
| Leave it, documented | set aside | reported as "no copy left" (false report, no wrong delete) | none |
Picture in one line: only an envelope with a postmark counts as "delivered"; a sheet without one is treated as a possible draft.