123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- ##### My (demuredemeanor) muttrc mailcap file
- # Uses tabstop=4; shiftwidth=4 tabs; foldmarker={{{,}}};
- # https://notabug.org/demure/dotfiles
- # legacy repo http://github.com/demure/dotfiles
- # vim:set syntax=mailcap:
- ## Note:
- # due to how vim is handling mailcap, I will be nesting levels with extra #s
- ### Docs ### {{{
- ## MS Word Documents
- application/msword; ~/.config/neomutt/view_attachment.sh %s "-" & sleep 5; test=test -n "$DISPLAY"
- application/msword; antiword %s
- application/vnd.openxmlformats-officedocument.wordprocessingml.document; ~/.config/neomutt/view_attachment.sh %s "-" & sleep 5; test=test -n "$DISPLAY"
- ### End Docs ### }}}
- ### Images ### {{{
- image/*; feh %s & sleep 5; test=test -n "$DISPLAY"
- image/*; cacaview %s
- ### End Images ### }}}
- ### PDFs ### {{{
- application/pdf; ~/.config/neomutt/view_attachment.sh %s pdf; test=test -n "$DISPLAY"
- ## Check this once you have a good pdf email
- application/pdf; pdftohtml -q %s - | w3m -T text/html; copiousoutput
- application/postscript; zathura %s; test=test -n "$DISPLAY"
- application/postscript; ps2ascii %s; copiousoutput;
- ### End PDFs ### }}}
- ### Video ### {{{
- video/*; mpv %s > /dev/null;
- ### End Video ### }}}
- ### Audio ### {{{
- audio/*; mpv %s >/dev/null;
- ### End Audio ### }}}
- ### Text/HTML ### {{{
- text/plain; less %s; edit=vim; compose=vim; needsterminal
- text/html; ~/.config/neomutt/view_attachment.sh %s html; test=test -n "$DISPLAY"
- ## Disabled for security
- #text/html; w3m %s; nametemplate=%s.html; needsterminal
- #text/html; w3m -v -F -T text/html -dump %s; copiousoutput
- #text/html; elinks -dump -dump-color-mode 3 %s; copiousoutput
- text/rtf; ~/.config/neomutt/view_attachment.sh %s rtf
- text/xml;
- text/*; less %s; edit=vim; compose=vim; needsterminal
- ### End Text ### }}}
- ### Compressed Files ### {{{
- application/x-zip; unzip -l %s; copiousoutput
- application/zip; unzip -l %s; copiousoutput
- application/x-rar; unrar l %s; copiousoutput
- application/x-rar-compressed; unrar l %s; copiousoutput
- application/x-tar; tar -tvf %s; copiousoutput
- application/x-tarz; tar -tvf %s; copiousoutput
- application/x-gzip; tar -ztvf %s; copiousoutput
- application/x-bzip2; tar -jtvf %s; copiousoutput
- application/x-bzip; tar -jtvf %s; copiousoutput
- application/x-bzip-compressed-tar; tar -jtvf %s; copiousoutput
- application/x-7z-compressed; 7z l %s; copiousoutput
- application/x-7z-compressed-tar; 7z l %s; copiousoutput
- ### End Compressed ### }}}
- ### vcard ### {{{
- #text/x-vcard; evolution %s; test=test -n "$DISPLAY"
- ### End vcard ### }}}
- ### Unidentified files ### {{{
- application/octet-stream; ~/.config/neomutt/view_attachment.sh %s "-"
- ### End Unidentified ### }}}
- ### notes
- #look up all text
- #look up vcards
- #look up pkcs?
- #look up postscript, and other pdf lieks?
- #view contents of compressed files?
- #
|