On Tue, Jan 18, 2022 at 11:04:40PM +0300, Jean Louis wrote:
> * Chris Green <c...@isbd.net> [2022-01-18 20:45]:
> > 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?
> 
> I am sure you can, instead of individual program, run a dmenu or other
> similar menu in console, maybe such as fzf, or console dialogs and
> then choose by which program to open the html files.
> 
I don't want to have to interact with things at all, I just want
messages from one particular address to be filtered through a
different HTML parser than the default lynx.  The messages should just
appear in my mutt pager automatically like all other messages.

-- 
Chris Green

Reply via email to