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
F14393083: D19489.id46612.diff
Sat, Dec 21, 11:03 PM
F14387963: D19489.id46605.diff
Sat, Dec 21, 3:26 PM
Unknown Object (File)
Thu, Dec 19, 6:41 PM
Unknown Object (File)
Sun, Dec 8, 7:39 AM
Unknown Object (File)
Tue, Dec 3, 11:43 PM
Unknown Object (File)
Sun, Nov 24, 3:30 AM
Unknown Object (File)
Nov 22 2024, 1:49 PM
Unknown Object (File)
Oct 25 2024, 3:15 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