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
F14133202: D19026.id45622.diff
Mon, Dec 2, 3:43 AM
Unknown Object (File)
Tue, Nov 19, 12:47 PM
Unknown Object (File)
Fri, Nov 15, 1:10 AM
Unknown Object (File)
Mon, Nov 11, 9:54 AM
Unknown Object (File)
Wed, Nov 6, 5:51 PM
Unknown Object (File)
Oct 18 2024, 4:24 AM
Unknown Object (File)
Oct 14 2024, 4:06 AM
Unknown Object (File)
Oct 9 2024, 8:45 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
Branch
email2
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 19417
Build 26259: Run Core Tests
Build 26258: arc lint + arc unit