[Mutt] Is there any way to view text/html inline *only if* we think text/plain is not right?

Mihai Lazarescu mtlagm at gmail.com
Fri May 19 00:54:46 UTC 2023


On Thursday, May 18, 2023 at 19:53:50 -0400, José María Mateos wrote:

> 2. If I'm not convinced by that version, press some key and
> then text/html is displayed inline (using w3m, lynx, links, or
> whatever in the ~/.mailcap file).

I use this macro:

macro pager ~ '<enter-command>unalternative_order *<ENTER><enter-command>alternative_order text/html text/enriched text/plain<ENTER><exit><display-message>'

to switch to HTML and this:

macro pager '`' '<enter-command>unalternative_order *<ENTER><enter-command>alternative_order text/plain text/enriched text/html<ENTER><exit><display-message>'

to switch to text.

> 3. If that's still not good enough, use a macro I already have
> to run mutt_bgrun and display that mail using Firefox directly.

I use this:

macro pager,index,attach M '<enter-command>set pipe_decode=no<ENTER><pipe-message>viewhtmlmsg<ENTER><enter-command>set pipe_decode=yes<ENTER>' "view message in graphical browser"

using https://github.com/lilydjwg/viewhtmlmsg

HTH,
Mihai


More information about the Mutt-users mailing list