is it possible to have two options for viewing html mail?

Globe Trotter itsme_410 at yahoo.com
Sun Oct 25 00:18:26 UTC 2020


On Saturday, 24 October at 22:54, Mutt Users wrote:

>> Lots of people send me mail in HTML format (even though I do not like it). I have the following set up in my .mailcap:
>> text/html; w3m -I %{charset} -T text/html; copiousoutput
>> so it converts things using w3m more or less okay, however, I am wondering is it possible to have an option for viewing using midori/firefox for the cases where w3m is not enough?


> I've got this in my mailcap:


> text/html; w3m -I %{charset} -T text/html -dump; copiousoutput; print = qutebrowser %s; nametemplate=%s.html

> To open an email in w3m press Enter, in qutebrowser p or whatever print is bound to. You can adapt this for firefox.

> Hope that helps.
> Regards Wim

--
      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
    |,4-  ) )-,_. ,\ (  `'-'

    '---''(_/--'  `-'\_)


This solution does exactly what I want. I wanted to use midori, so I replaced qutebrowser with midori and it works. 

Is it possible to have multiple options? So, in case midori did not cut it, I would use firefox instead?

TIA!


More information about the Mutt-users mailing list