On Mon, Feb 01, 2021 at 09:46:04PM +0300, Oleg A. Mamontov wrote:
I use below macro (Alt-h) for the same:
---
macro index,pager <esc>h <view-attachments>/html<enter><enter><exit> "view first 
html attachment"
---
Of course, I also have Chrome as a viewer for text/html in mailcap.
Hope this helps.

I tried it and in my case (using mutt 1.9.4 on Ubuntu 18.04) this opens the attachment list and selects the first HTML attachment, but then I have to click enter and q to open the HTML portion in a tab and then exit.

I remember that at some point I had lost the ability to open HTML attachments in the browser pressing Enter, and someone on the list told me to add this to my .muttrc:

bind attach <Return> view-mailcap

So I've changed the macro to this, and it works perfectly in my case, thanks a lot for this "recipe":

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

Cheers,

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

Reply via email to