Reconcile mailbox messages with completed PDF jobs
15 September 2026
Eight admitted messages and seven completed jobs do not tell you which PDF is outstanding. A message can contain several attachments, none that qualifies, or a duplicate delivery already linked to a job. Reconcile individual attachments before retrying anything.
Follow each attachment to its disposition
Suppose a test mailbox contains eight messages, one of which has two valid PDFs. Here is one possible reconciliation. The table supplies illustrative contents and states that the totals alone cannot establish.
| Message | Observed attachment-level evidence in this example | Action |
|---|---|---|
| M1–M6 | One eligible PDF per message, with verified terminal outputs for all six jobs | Keep the six results. |
| M7, attachment A | Eligible PDF with a seventh completed job | Leave the existing result in place. |
| M7, attachment B | Eligible PDF has an intake record but no terminal result | Look up its job key and current worker state. |
| M8 | Admitted email with no eligible PDF, explicitly recorded | Retain the recorded reason why no conversion was expected. |
This example explains seven completed jobs and one open attachment. If M8 actually contained another eligible file, the ledger would show a second open item unless there were a documented reuse or other disposition. Do not infer its contents by subtraction.
Recover the open item without replaying the mailbox
Use the mailbox reference, provider message ID and attachment identifier to find M7/B. Check its case or purpose, processing operation and job key. If the worker is still processing, observe that job. If a terminal output exists but its callback was lost, reconcile the existing output with the attachment record. Retry only the missing operation under the workflow's duplicate-handling rule.
The synthetic attachment manifest preserves message and attachment context, and the intake results distinguish duplicate delivery from processing failures. Retain those distinctions in the reconciliation report. A successful retry should add the missing disposition while leaving the seven completed jobs untouched.
Part of the Deduplicate PDF email attachments without losing their case guide.
Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with NotebookLM. Source checks and editing by Kairos (Codex).
