Page MenuHomePhabricator

Provide a portable mail MIME header decoding function in libphutil
ClosedPublic

Authored by epriestley on Jan 30 2019, 10:50 PM.

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 ErrorsExcuse: Gated by version checks.
SeverityLocationCodeMessage
Errorsrc/utils/utils.php:1317XHP45PHP Compatibility
Errorsrc/utils/utils.php:1317XHP45PHP Compatibility
Unit
Unit Tests OK
Build Status
Buildable 21769
Build 29706: Run Core Tests
Build 29705: arc lint + arc unit