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
F18811761: D19489.id.diff
Mon, Oct 20, 4:44 AM
F18809504: D19489.diff
Sun, Oct 19, 2:37 PM
F18785827: D19489.id46612.diff
Tue, Oct 14, 12:38 PM
F18780843: D19489.id.diff
Sun, Oct 12, 8:16 PM
F18744322: D19489.diff
Fri, Oct 3, 2:34 AM
F18677931: D19489.id46605.diff
Sep 25 2025, 9:40 PM
F18509670: D19489.id.diff
Sep 5 2025, 3:32 AM
F18502937: D19489.diff
Sep 4 2025, 10:45 PM
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