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)
Wed, Jan 22, 3:18 AM
Unknown Object (File)
Tue, Jan 21, 3:38 PM
Unknown Object (File)
Tue, Jan 21, 11:57 AM
Unknown Object (File)
Tue, Jan 21, 9:54 AM
Unknown Object (File)
Wed, Jan 15, 6:53 PM
Unknown Object (File)
Sat, Jan 11, 11:16 PM
Unknown Object (File)
Sun, Dec 29, 3:24 AM
Unknown Object (File)
Dec 21 2024, 11:14 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
Branch
email2
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 19417
Build 26259: Run Core Tests
Build 26258: arc lint + arc unit