Skip to content

Pro: hide the Mailstack footer; footer link in the mail's language - #72

Merged
jurczykpawel merged 3 commits into
mainfrom
feat/poweredby
Nov 29, 2026
Merged

jurczykpawel merged 3 commits into
mainfrom
feat/poweredby

Conversation

@jurczykpawel

Copy link
Copy Markdown
Owner

Mailstack Pro option mailTemplates.poweredBy: false (root or per brand, brand wins) removes the "Sent by Mailstack" footer from HTML and text. It applies only while the Pro license is confirmed. Without Pro, or with a refused or expired license, the footer stays. The footer link now follows the email's language.

  • License state comes from the new KeyProvider.licensed(), which reads the Pro license gate cache. It is asked only for brands in plans.hideFooter (compiled once), so sends without the option cost nothing.
  • config check, npm run setup and Node start warn, not fail, when the option is set without a mailstack-pro extension. The license is checked at send time and the safe outcome is the footer staying.
  • Capabilities report layout.poweredBy: enabled, disabled: license or not_configured. The Pro panel status page lists it generically.
  • Link: Polish emails and emails without a language go to /pl (unchanged); every other language goes to https://mailstack.techskills.academy/, the site's x-default English page.

Tests: footer hidden with Pro + option; kept with a refused license, without Pro, and with a brand override; en/pl link; config warning. Full suite 2824 passed.
Production config renders v1.2.7 vs this branch (129 renders): 63 identical (pl and no language), 66 English differ only in the footer link, 0 other differences.

Needs mailstack-pro feat/poweredby (licensed()). Do not merge before coordinator/owner acceptance.

🤖 Generated with Claude Code

jurczykpawel and others added 3 commits November 29, 2026 13:51
…mail's language

mailTemplates.poweredBy (global, brand over global) false hides the footer only when
the Pro key provider confirms its license from its cache; without Pro the footer stays
and config check, setup and Node start warn. English mails link the English site.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Worker extension host received keys without licensed(), so a resend kept the footer
even with a confirmed license (review finding).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jurczykpawel
jurczykpawel merged commit 574d92b into main Nov 29, 2026
11 checks passed
@jurczykpawel
jurczykpawel deleted the feat/poweredby branch November 29, 2026 13:30
@jurczykpawel jurczykpawel mentioned this pull request Nov 29, 2026
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.

1 participant