Skip to content

fix: show the project name as the email sender - #1020

Merged
AnthonyRonning merged 1 commit into
MaplePrivacyLabs:masterfrom
doowta:fix/email-sender-name
Sep 24, 2026
Merged

AnthonyRonning merged 1 commit into
MaplePrivacyLabs:masterfrom
doowta:fix/email-sender-name

Conversation

@doowta

@doowta doowta commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Maple account email is sent with a bare From address ([email protected]), so Gmail lists the sender as "hello". This wraps the address with the project name, so the From header becomes Maple <[email protected]>.

  • Applies to the six project emails: welcome, verification, password reset, password reset confirmation, account deletion, and account deletion confirmation. The four OpenSecret platform emails are unchanged.
  • The project settings only accept a bare address (send_from is validated as an email), so the name is added when sending rather than stored.
  • The name is filtered to characters that are safe unquoted in a display name. For example, Acme, Inc. becomes Acme Inc, and a name with nothing usable falls back to the bare address.

Email content, codes, links, expiry, and send timing are unchanged.

Testing

Adds project_mail_is_sent_under_the_project_name, which covers Maple, punctuation, header-injection input, and the empty fallback. Ran the backend CI steps locally in the repo's Nix dev shell: cargo fmt --check, cargo clippy --all-targets --all-features -D warnings, and cargo test --all-features all pass, including the new test.

Project mail went out with a bare From address ([email protected]),
so Gmail listed the sender as "hello". Wrap the address with the project
name, e.g. "Maple <[email protected]>", for the welcome,
verification, password reset, and account deletion emails. The name is
filtered to characters that are safe unquoted in a display name, and an
empty result falls back to the bare address.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@AnthonyRonning
AnthonyRonning merged commit 22eb31e into MaplePrivacyLabs:master Sep 24, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants