Skip to content

Add HTML signature settings#46

Open
Buooy wants to merge 1 commit into
cloudflare:mainfrom
0xBuooy:feature/html-signature-settings
Open

Add HTML signature settings#46
Buooy wants to merge 1 commit into
cloudflare:mainfrom
0xBuooy:feature/html-signature-settings

Conversation

@Buooy
Copy link
Copy Markdown

@Buooy Buooy commented May 18, 2026

Summary

Adds UI support for configuring HTML email signatures per mailbox.

The compose flow already supported settings.signature.html through getSignatureBlock(...); this PR adds the missing Settings UI so users can enable, edit, preview, and save HTML signatures.

Changes

  • Added a Signature section to mailbox Settings.
  • Added a checkbox to enable or disable signatures.
  • Added an HTML textarea for signature markup.
  • Added a sanitized preview using DOMPurify.
  • Saves signature settings through the existing mailbox settings shape:
    • signature.enabled
    • signature.html
    • preserves signature.text
  • Updated new mailbox defaults to initialize signature.html.

Behavior

When a mailbox has signatures enabled and HTML saved, compose flows automatically insert the signature into:

  • New messages
  • Replies
  • Reply-all messages
  • Forwards

The rendered signature continues to use the existing getSignatureBlock(...) helper, which sanitizes HTML before inserting it into the compose editor.

Add a mailbox settings UI for enabling HTML email signatures, editing the signature markup, and previewing the sanitized rendered output.

Persist the signature through the existing mailbox settings shape and initialize new mailboxes with an explicit html signature field so compose flows can use the existing getSignatureBlock support.
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