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
F17794165: D19026.diff
Thu, Jul 24, 11:43 PM
Unknown Object (File)
Jun 17 2025, 12:48 AM
Unknown Object (File)
Jun 16 2025, 8:16 AM
Unknown Object (File)
May 18 2025, 8:34 PM
Unknown Object (File)
May 10 2025, 12:20 PM
Unknown Object (File)
Apr 30 2025, 6:22 AM
Unknown Object (File)
Apr 29 2025, 4:20 AM
Unknown Object (File)
Apr 28 2025, 12:13 PM
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