On Thu, Feb 04, 2021 at 06:21:44PM +0100, Bernard Massot wrote:
For some time I'm using "elinks -dump-color-mode 1" to display HTML
mails in Mutt's pager, along with allow_ansi=yes.

When I respond to a colored HTML mail, everything work as expected.

Stripping ANSI sequences in autoview rendering for replies was added as a feature in Mutt 1.14.0.

However, when I inline forward such a mail, all ANSI escape sequences
are kept and shown in the body. I get a quoted text full of "^[[0;37m"
kind of things.

Could I avoid that using right configuration or is it a bug I should
report?

You could try turning off $forward_decode, but I don't think that's the behavior you want. :-) (It forwards the raw email as inline text).

At the point the autoview is invoked, I don't think there is currently a way to tell that it will be used for forward-content, as opposed to rendering in the pager.

However, I should be able to add a new flag and strip the sequences for an inline forward too. I'll add that to my TODO list, but feel free to file a bug if you'd like to track progress or help test.

--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA

Attachment: signature.asc
Description: PGP signature

Reply via email to