On Sun, Apr 23, 2023 at 02:56:35PM +0000, Alan Mackenzie wrote:
Some considerate organisation has been sending me MIME mails with content in a text/html section and a wholly blank text/plain version. What I see in mutt is the blank text/plain. Who on Earth thought a blank text/plain section was somehow a good idea?

I've seen a worse version of this: the text version and the html version are completely different.

On my side, I have this:

auto_view text/html
folder-hook . 'unalternative_order *; alternative_order text/plain text/html'
folder-hook boletines 'unalternative_order *; alternative_order text/html 
text/plain'

So normally I look at the plain-text version, except in my folder "boletines" (Spanish for "newsletters"), where I default to HTML.

In those cases where I'm in another folder and I need to look at the HTML content, I use this macro:

macro index,pager ,b "<view-attachments>/html<enter><view-mailcap><exit>" "View 
first HTML attachment in browser"

This opens the first available HTML attachmend (typically the message body) in my browser of choice (set up via ~/.mailcap).

Cheers,

--
José María (Chema) Mateos || https://rinzewind.org

Reply via email to