Skip to content

[PB-6787] feature/Send the body of an email as markup instead of plain text - #591

Open
CandelR wants to merge 1 commit into
feature/PB-6787-reply-and-reply-allfrom
feature/PB-6787-forward
Open

CandelR wants to merge 1 commit into
feature/PB-6787-reply-and-reply-allfrom
feature/PB-6787-forward

Conversation

@CandelR

@CandelR CandelR commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Send the body of an email as markup and render decrypted markup bodies

Summary

  • mailCrypto.service.ts: encryptAndSendEmail and encryptAndSendReply wrap the body with plainTextToHtml before encrypting it, because the envelope carries a single body that mail-web and mail-server both treat as HTML.encryptMessageForRecipients now takes that markup as body, while preview stays plain text for the mailbox list.
  • emailBodyContent.ts: new isMarkupBody tells whether a decrypted body is markup . resolveEmailBody uses it, so a decrypted HTML body is sanitised and rendered instead of shown with its tags escaped. escapeHtml is exported and plainTextToHtml builds on it.
  • EmailBody.tsx: a message that could not be decrypted shows a notice instead of an empty body

@CandelR CandelR self-assigned this Sep 11, 2026
@CandelR
CandelR added this pull request to stack #583 September 11, 2026 13:40
@CandelR
CandelR requested a review from xabg2 September 15, 2026 13:05
@CandelR
CandelR marked this pull request as ready for review September 15, 2026 13:05
@CandelR
CandelR force-pushed the feature/PB-6787-forward branch from 83aaca0 to efc5f28 Compare September 17, 2026 09:07
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
26.5% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

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