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
F19011439: D20069.diff
Nov 22 2025, 10:03 AM
F18818070: D20069.diff
Oct 21 2025, 8:40 PM
F18744522: D20069.id.diff
Oct 3 2025, 3:20 AM
F18703244: D20069.id47919.diff
Sep 28 2025, 3:21 AM
F18656699: D20069.diff
Sep 22 2025, 11:12 PM
F18650540: D20069.diff
Sep 21 2025, 12:58 AM
F18621595: D20069.id.diff
Sep 15 2025, 8:54 AM
F18601890: D20069.id47919.diff
Sep 13 2025, 1:41 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable