mail: Use new neomutt styling, extend html view
This commit is contained in:
parent
3e00e84319
commit
bd71cfc168
9 changed files with 501 additions and 75 deletions
|
|
@ -1,8 +1,28 @@
|
|||
text/html; $BROWSER %s
|
||||
text/html; w3m -I %{charset} -T text/html -dump; copiousoutput;
|
||||
video/*; setsid umpv --quiet %s &; copiousoutput
|
||||
audio/*; mpv %s ;
|
||||
application/*; mkdir -p /tmp/mutt \; cp %s /tmp/mutt \; xdg-open /tmp/mutt/$(basename %s) &
|
||||
# open html emails in browser (or whatever GUI program is used to render HTML)
|
||||
text/html; xdg-open %s ; nametemplate=%s.html
|
||||
# render html emails inline using magic (uncomment the line below to use lynx instead)
|
||||
# text/html; lynx -assume_charset=%{charset} -display_charset=utf-8 -collapse_br_tags -dump %s; nametemplate=%s.html; copiousoutput
|
||||
text/html; render-prettyhtml %s; nametemplate=%s.html; copiousoutput;
|
||||
text/plain; $EDITOR %s ;
|
||||
|
||||
# show calendar invites
|
||||
text/calendar; render-calendar-attachment.py %s; copiousoutput;
|
||||
application/ics; mutt-viewical; copiousoutput;
|
||||
|
||||
# open images externally
|
||||
image/*; nsxiv %s ;
|
||||
|
||||
# open videos in mpv
|
||||
video/*; mpv --autofit-larger=90\%x90\% %s; needsterminal;
|
||||
video/*; setsid mpv --quiet %s &; copiousoutput
|
||||
|
||||
# open spreadsheets in sc-im
|
||||
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; sc-im %s; needsterminal
|
||||
|
||||
# open anything else externally
|
||||
application/pdf; xdg-open %s;
|
||||
|
||||
application/*; mkdir -p /tmp/mutt \; cp %s /tmp/mutt \; xdg-open /tmp/mutt/$(basename %s) &
|
||||
application/pgp-encrypted; gpg -d '%s'; copiousoutput;
|
||||
application/pgp-keys; gpg --import '%s'; copiousoutput;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue