Skip to content

fix(email): refetch body value when JMAP truncates the displayed part - #928

Open
hildebrandttk wants to merge 1 commit into
bulwarkmail:mainfrom
hildebrandttk:fix/truncated-body-blank-render
Open

fix(email): refetch body value when JMAP truncates the displayed part#928
hildebrandttk wants to merge 1 commit into
bulwarkmail:mainfrom
hildebrandttk:fix/truncated-body-blank-render

Conversation

@hildebrandttk

Copy link
Copy Markdown
Contributor

Summary

Large HTML emails (e.g. image-only reports with a data:image src cut mid-tag by the 256 KB body cap) rendered completely blank because Email.bodyValues[partId].isTruncated was declared but never acted on. On truncation, issue one follow-up Email/get with a much larger cap for the parts actually shown, batched across a thread instead of one refetch per message.

Changes

Related issues

Closes #884

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactor / code quality improvement
  • Chore / dependency update / CI change

Checklist

  • I have read the Contributing Guide
  • My code follows the project's code style and conventions
  • I have run npm run typecheck && npm run lint and there are no errors
  • The build passes (npm run build)
  • I have tested my changes locally
  • I have added or updated documentation if needed
  • I have updated translations (locales/) if my changes affect user-facing text
  • I have included screenshots or a screen recording for UI changes

Screenshots / demo

Notes for reviewers

Large HTML emails (e.g. image-only reports with a data:image src cut
mid-tag by the 256 KB body cap) rendered completely blank because
Email.bodyValues[partId].isTruncated was declared but never acted on.
On truncation, issue one follow-up Email/get with a much larger cap
for the parts actually shown, batched across a thread instead of one
refetch per message.

Closes bulwarkmail#884
@hildebrandttk
hildebrandttk force-pushed the fix/truncated-body-blank-render branch from 7b62507 to 2cf7427 Compare September 2, 2026 20:09
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.

[Bug]: Large HTML emails render blank when body value exceeds 256 KB (isTruncated never handled)

1 participant