Page MenuHomePhabricator

Let PhutilEmailAddress encode addresses with complex display names somewhat properly
ClosedPublic

Authored by epriestley on Feb 8 2018, 4:52 PM.
Tags
None
Referenced Files
F19095139: D19026.id.diff
Thu, Dec 4, 4:05 AM
F19090610: D19026.diff
Wed, Dec 3, 12:22 PM
F19017838: D19026.id.diff
Nov 23 2025, 9:38 AM
F18950665: D19026.id45622.diff
Nov 12 2025, 2:48 AM
F18860732: D19026.diff
Nov 2 2025, 12:31 PM
F18777402: D19026.diff
Oct 11 2025, 2:41 AM
F18759238: D19026.id45622.diff
Oct 6 2025, 2:36 AM
F18755151: D19026.diff
Oct 5 2025, 4:03 AM
Subscribers
None

Details

Summary

Ref T13053. This is intended to replace the incomplete fix in D17831, which stopped some bleeding but is not correct for all inputs.

This mostly appears to implement the rules in RFC2822, which don't seem exceptionally complex from the escaping side, even though it is well established that no computer can ever successfully parse an RFC2822 address.

Test Plan

Added unit tests; ran unit tests.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable