#3773: piped text attachment is not converted to the local charset
----------------------+----------------------
Reporter: vinc17 | Owner: kevin8t8
Type: defect | Status: assigned
Priority: major | Milestone:
Component: charset | Version:
Resolution: | Keywords:
----------------------+----------------------
Changes (by kevin8t8):
* owner: mutt-dev => kevin8t8
* status: new => assigned
Comment:
It looks like mutt_decode_attachment() checks for the state flag
MUTT_CHARCONV and will do charset conversions for text attachments in that
case.
There are a couple paths to this through the attachment menu.
One is through mutt_query_pipe_attachment() to mutt_pipe_attachment().
mutt_pipe_attachment() sets up its own STATE to pass through to
mutt_decode_attachment(). [mutt_print_attachment() will also invoke
mutt_pipe_attachment() when printing text attachments, but I think this
would be desired behavior too.]
The other is through directly through pipe_attachment(). This version
uses the STATE set up in mutt_pipe_attachment_list().
It seems like all we need to do is add the MUTT_CHARCONV flag to the STATE
in mutt_pipe_attachment_list() and mutt_pipe_attachment().
--
Ticket URL: <https://dev.mutt.org/trac/ticket/3773#comment:2>
Mutt <http://www.mutt.org/>
The Mutt mail user agent