Reconcile mailbox messages with completed PDF jobs

15 September 2026

A person writes notes beside an open binder and a calculator.
Illustrative photograph. Cropped and resized. Photo by Mikhail Nilov on Pexels. · Pexels License

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.

MessageObserved attachment-level evidence in this exampleAction
M1–M6One eligible PDF per message, with verified terminal outputs for all six jobsKeep the six results.
M7, attachment AEligible PDF with a seventh completed jobLeave the existing result in place.
M7, attachment BEligible PDF has an intake record but no terminal resultLook up its job key and current worker state.
M8Admitted email with no eligible PDF, explicitly recordedRetain 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).