Skip to content

Rely on backend to strip attachments from the raw email view - #84

Closed
wparad wants to merge 2 commits into
mainfrom
claude/sanitizer-large-attachments-6d1lbk
Closed

Rely on backend to strip attachments from the raw email view#84
wparad wants to merge 2 commits into
mainfrom
claude/sanitizer-large-attachments-6d1lbk

Conversation

@wparad

@wparad wparad commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • The "View original email" modal (EmailSignalCard.vue) previously rendered the full raw .eml source with a client-side transform stripping attachments for display only — Copy and Download still shipped the untouched original bytes with base64 attachment/inline-image data to the client.
  • That stripping now happens server-side instead (see the companion SES-Email-Adapter PR): the /raw endpoint the frontend fetches from now already returns a display-safe copy with attachments stripped. This reverts the client-side stripAttachmentsFromRawEmail() helper — no longer needed, and it means Copy/Download get the stripped copy too, matching the backend's intent that consumers of this endpoint never need the full original.

Test plan

  • npx vue-tsc --noEmit
  • npx eslint on changed files
  • Full unit/component suite passes (509 tests)

🤖 Generated with Claude Code

https://claude.ai/code/session_01V85rptvcLi67TUmaqU1s53


Generated by Claude Code

The raw .eml modal rendered base64 attachment/inline-image data inline,
bloating the view with content nobody reads there. Add
stripAttachmentsFromRawEmail(), which walks MIME part boundaries and
replaces attachment/inline-file bodies with a placeholder while
leaving headers and the visible text/html body intact. Applied only
to the modal's display text; Copy and Download still use the
untouched raw source so the .eml stays a faithful reproduction.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V85rptvcLi67TUmaqU1s53
@github-actions

Copy link
Copy Markdown

The raw email the frontend fetches is now already a display-safe copy
with attachments stripped server-side (see the SES-Email-Adapter backend
change to the content sanitizer and the /raw endpoint). Copy and Download
previously still shipped the full original bytes since only the display
text was stripped client-side; stripping in the backend means every
consumer of this endpoint gets the stripped copy, so the client-side
transform is no longer needed.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V85rptvcLi67TUmaqU1s53
@wparad wparad changed the title Strip attachment bodies from the "View original email" raw source view Rely on backend to strip attachments from the raw email view Aug 26, 2026
@wparad wparad closed this Aug 26, 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.

2 participants