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
Unknown Object (File)
Sat, Mar 23, 5:04 AM
Unknown Object (File)
Sat, Mar 23, 5:04 AM
Unknown Object (File)
Sat, Mar 23, 5:04 AM
Unknown Object (File)
Sat, Mar 23, 5:04 AM
Unknown Object (File)
Sat, Mar 16, 6:54 PM
Unknown Object (File)
Wed, Mar 13, 10:06 PM
Unknown Object (File)
Feb 18 2024, 1:28 AM
Unknown Object (File)
Jan 7 2024, 5:32 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