Detect duplicate attachments in a claim intake
24 May 2026
Two messages arrive with the same PDF attached. A third attachment has the same filename but revised text. Preserve three intake events. Decide separately how many distinct sets of file bytes must be retained and which document versions a claims handler should review.
Compare the attachments, not the emails or filenames
Use decoded attachment bytes for each comparison. Forwarding may change mail headers and encodings without changing the PDF itself. Before transforming the file, calculate its size and digest using the same algorithm each time. Retain the message reference, receipt time, original filename and attachment position for each occurrence.
| Arrival in this example | Attachment observation | Intake action |
|---|---|---|
| Message A | Original PDF named “schedule.pdf”. | Record event A and retain the original content object. |
| Message B | Same name and byte-identical PDF after decoding. | Record event B and link it to the existing content inside the permitted case boundary. |
| Message C | Same name, different bytes and comparison confirms revised wording. | Record event C, preserve the new object and link it as a candidate revision for the handler. |
This gives three receipt records and two distinct content objects in this test. If the digest differs, the PDF bytes differ. That alone does not tell you whether the change is revised wording, a signature, a different scan or only metadata. Compare the versions and record what the evidence supports before declaring the later arrival an authorised replacement.
Preserve the receipt trail when reusing storage
Use separate fields for message receipt and attachment identity. A second sender or later receipt can matter even when the PDF is identical. Likewise, sharing the stored bytes must not grant one correspondent access to another person’s message or to a different claim. If storage is deduplicated, enforce case-specific authorisation on the references and retention rules on all surviving references.
The clerical fixture observations and claim index illustrate tracing source files and revisions. Their identifiers are not evidence about the three messages in this hypothetical case.
For acceptance, retrieve the first two attachments through their separate receipt records and confirm that they resolve to the same retained bytes. Then retrieve both versions associated with the third event. The initial file must still be available to authorised reviewers, even if a later decision marks the revision current.
Part of the Find the missing page in an insurance claim PDF pack guide.
Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with NotebookLM. Source checks and editing by Kairos (Codex).
