Repository navigation
Description
Background
send_email_via_resend puts the entire subscriber list into a single message's "to" field (scripts/main.py:60-66). Resend renders every address into the To header, so each subscriber sees every other subscriber's email address.
It hasn't blown up yet only because there's currently one real subscriber — but the README explicitly invites strangers to subscribe via PR, so the moment a second person signs up, the digest starts leaking addresses in both directions on every send.
Note the distinction from subscribers.txt itself being public: people who PR themselves into a public file have accepted that their address is visible in the repo. What they have not accepted is having their address pushed into other people's inboxes daily.
Motivation
- This is a privacy defect with a hard trigger condition (subscriber count > 1) that the project is actively soliciting.
- Fix cost is small now; retrofitting after complaints (or after someone scrapes addresses out of a forwarded digest) is reputational damage the project doesn't need.
Proposed approach
Either of:
- Per-recipient sends (recommended): loop over subscribers and call Resend once per address. Volume is trivial (daily cadence, small list), it composes naturally with the roadmap item Per-subscriber topic filters (Per-subscriber language/topic filters for the email digest #6) which needs per-recipient rendering anyway, and a single bad address failing doesn't take down the batch.
- Bcc: single call with a fixed
to(e.g. the sender address) and all subscribers inbcc.
Given #6 is already on the roadmap, option 1 is the better structural bet — this issue can land the loop, and #6 later just varies the payload per recipient.
Acceptance criteria
- No delivered email exposes any other subscriber's address in To/Cc headers (verify against a two-address test list).
- A failure sending to one address is logged but does not prevent delivery to the others.
- Tests cover the send loop / recipient isolation with a mocked Resend call.
Activity