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, Dec 18, 12:45 AM
Unknown Object (File)
Wed, Dec 18, 12:45 AM
Unknown Object (File)
Wed, Dec 18, 12:45 AM
Unknown Object (File)
Wed, Dec 18, 12:45 AM
Unknown Object (File)
Fri, Dec 13, 2:07 PM
Unknown Object (File)
Sun, Dec 8, 9:47 PM
Unknown Object (File)
Tue, Dec 3, 12:51 PM
Unknown Object (File)
Nov 4 2024, 1:12 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