The `.eml` download holds the headers and the body only. A message with attachments downloads without them. **What to build** A `.eml` that is a valid multipart message with the attachments included. **Where** - `app/lib/email-html.ts`: `toEmlBlob` builds the file in the browser from the headers and body. - Attachments are stored in R2 and served by the Worker, so this probably belongs in a Worker route that streams the message, not in the browser. **Before you start** Comment with the approach you'd take (browser or Worker, and how large attachments are handled), so we can agree on it first. **Done when** - The downloaded file opens in another mail app with its attachments. - There are tests for a message with no attachment, one attachment and an inline image.
Activity