There already was a
function, decode_rfc2047(), that does what it says. However, it can
only convert to the local charset. A possible future enhancement
would be to convert to any specified charset. And maybe repurpose
the argument of the mhfixmsg -decodeheaderfieldbodies switch to
specify the destination charset.
commit 1d3dab47fe7b4ddc8e035880456977afaf80b350
Date: Sun Feb 27 10:54:05 2022 -0500
Changed interpretation of argument to mhfixmsg -decodeheaderfieldbodies.
The switch argument now specifies the character set of the decoded field
bodies.
David