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

Andrew Marks mutt at amrx.net
Fri May 19 23:13:23 UTC 2023


Hello,

I think I got this off the list at some point, but

v to view all parts
(select the html part)
^o 

macro attach "^o" "<pipe-message>cat > $HOME/mutt.html ; open $HOME/mutt.html<Enter>"

I'm on a system that has "open", but you can also call the browser
directly.

-Andrew

On Thu, May 18, 2023 at 07:53:50PM -0400, José María Mateos wrote:
> Hi everybody,
> 
> Lately I've been receiving mail in which the text/plain part and the
> text/html part are at odds. This is typically caused by generator software
> that ignores text/plain, or uses some old version, etc.
> 
> Today I changed my settings to view text/html first via w3m, but I'm not
> entirely comfortable with this.
> 
> What I'd really like to do is:
> 
> 1. Display text/plain by default.
> 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).
> 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 don't know if point 2 is a possibility, to be honest. Does anyone know if
> this can be done?
> 
> Thanks a lot,
> 
> -- 
> José María (Chema) Mateos || https://rinzewind.org


More information about the Mutt-users mailing list