Skip to content

Download .eml: include attachments #9

Backlog

Description

@Hitesh-Sisara

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

  1. added
    enhancement
    help wanted
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions