12021/00/31 06:08.56 ನಲ್ಲಿ, Francesco Ariis <fa...@ariis.it> ಬರೆದರು:
> 
> Il 01 febbraio 2021 alle 21:46 Oleg A. Mamontov ha scritto:
> > I use below macro (Alt-h) for the same:
> > ---
> > macro index,pager <esc>h <view-attachments>/html<enter><enter><exit> "view 
> > first html attachment"
> 
> This is clever and needs to be put in the wiki! Thanks —F

I use w3m with autoview like this:

In my ~/.config/mailcap, I have:

text/html; /usr/bin/w3m -dump -o display_link_number=1 -o display_image=0 -o 
use_proxy=1 -o http_proxy=localhost -o https_proxy=localhost %s; copiousoutput; 
description=HTML Text; nametemplate=%s.html

And then in my .muttrc, I have:

alternative_order text/plain text/html
auto_view text/html

This means that if the email exists in plain-text, I get that version. 
Otherwise, it passes it through w3m and gives me the rendered HTML version.

Works pretty well imo!

HTH,

Chiraag
-- 
ಚಿರಾಗ್ ನಟರಾಜ್
Pronouns: he/him/his

Attachment: publickey - mailinglist@chiraag.me - b0c8d720.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to