Page MenuHomePhabricator

Provide a portable mail MIME header decoding function in libphutil
ClosedPublic

Authored by epriestley on Jan 30 2019, 10:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Mar 27, 5:22 PM
Unknown Object (File)
Wed, Mar 27, 5:22 PM
Unknown Object (File)
Wed, Mar 27, 5:22 PM
Unknown Object (File)
Wed, Mar 27, 5:22 PM
Unknown Object (File)
Sat, Mar 23, 12:35 PM
Unknown Object (File)
Sat, Mar 23, 12:35 PM
Unknown Object (File)
Sat, Mar 23, 12:35 PM
Unknown Object (File)
Sat, Mar 23, 12:35 PM
Subscribers
None

Details

Summary

See T13232. We currently have a hard dependency on the "iconv" extension to support exactly one call in inbound mail handling if you run your own local SMTP server.

Wrap it and provide an "mbstring" alternative.

Test Plan

Called both methods on some inputs, they appeared to have the same behavior.

Diff Detail

Repository
rPHU libphutil
Branch
iconv
Lint
Lint Errors
SeverityLocationCodeMessage
Errorsrc/utils/utils.php:1317XHP45PHP Compatibility
Errorsrc/utils/utils.php:1317XHP45PHP Compatibility
Unit
Tests Passed
Build Status
Buildable 21769
Build 29706: Run Core Tests
Build 29705: arc lint + arc unit