Page MenuHomePhabricator

Respect "metamta.email-body-limit" when building mail HTML bodies
ClosedPublic

Authored by epriestley on Jun 12 2018, 5:01 PM.
Tags
None
Referenced Files
F19111150: D19489.diff
Dec 9 2025, 3:43 PM
F19074158: D19489.id.diff
Dec 1 2025, 4:40 AM
F19069800: D19489.diff
Nov 30 2025, 3:04 PM
F18853178: D19489.id46612.diff
Oct 31 2025, 2:46 PM
F18841413: D19489.diff
Oct 28 2025, 8:54 AM
F18836974: D19489.id46612.diff
Oct 27 2025, 4:03 AM
F18836972: D19489.id46605.diff
Oct 27 2025, 4:03 AM
F18836971: D19489.id.diff
Oct 27 2025, 4:03 AM
Subscribers
None

Details

Summary

Ref T13151. See T11767. See PHI686. Although we limit outbound mail text bodies, the limit doesn't currently apply to attachments, HTML bodies, or headers. T11767 discusses improving this in the general case.

In the wild, an install hit an issue (see PHI686) where edits to Phriction pages generate very large HTML bodies. Check and respect the limit when building HTML bodies.

If we don't have enough room for the HTML body, we just drop it. We have the text body to fall back to, and HTML is difficult to truncate safely.

Test Plan

Added unit tests and made them pass.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable