display_filter and multipart mails
Kevin J. McCarthy
kevin at 8t8.us
Tue Oct 19 16:33:41 UTC 2021
On Mon, Oct 18, 2021 at 10:49:38PM +0000, mike9 at posteo.nl wrote:
>It seems display_filter always receives the first part of an email.
$display_filter is run with the text about to be sent to the pager for
viewing. It can't be used to select which alternative is rendered.
As Will Yardley mentioned, alternative_order can be used for that.
You could also try combining that with a message-hook, so text/html is
preferred only for that particular contact:
message-hook ~A 'unalternative_order *; alternative_order text/plain text/html'
message-hook '~f person at example\.com' 'unalternative_order *; alternative_order text/html text/plain'
--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.mutt.org/pipermail/mutt-users/attachments/20211019/3981ad54/attachment.asc>
More information about the Mutt-users
mailing list