Step-by-step answer
Stretch 45–60 min6 stepsUnpack and deduplicate a matter's email
A standard-library unpacker that walks ten synthetic .eml files, recursing into forwarded messages and zips, and reduces 12 attachments to 9 unique documents. Each document keeps the list of every message and MIME path that carried it. Deduplication is on the SHA-256 of the attachment bytes, never of the email.
Back to the exercise