On Tue, Jan 18, 2022 at 05:44:04PM +0000, Chris Green wrote: > I have the fairly standard setup for viewing HTML messages in mutt:- > > auto_view text/html > unalternative_order * > message-hook ~A "alternative_order text/html text/plain text" > > (The unalternative_order is because I have one special case where I > switch the order of text/html text/plain) > > ... and in ~/.mailcap:- > > text/html; lynx -dump %s; copiousoutput; nametemplate=%s.html > > > > However I now have a requirement where I want to run HTML messages > from one particular mailing list (well, it's a forum actually, but I > get the messages by E-Mail) through a program other than lynx. > > Is there a straightforward way to do this? It's easy enough to use a > message hook to catch the messages from the site but what do I need to > do then to convert the messages and feed them into the pager? > Could display_filter help? I.e. can I use a message_hook to set display_filter when the message is from the list in question and unset display_filter by default (i.e. for all other messages)?
-- Chris Green