summaryrefslogblamecommitdiffstats
path: root/mutt/mailcap
blob: 5a7c2b97e5529248669953a44c3a1dffd90e1946 (plain) (tree)
1
2
3
4
5
6
7
8
9





                                                                                                              


                                                  








                                                                  
                                                                                                       





                                                           


                                                  
# MS Word documents
# DONT HAVE A SOLUTION YET: application/msword; ~/.mutt/view_attachment.sh %s "-" '/Applications/TextEdit.app'

# Images
image/jpg; ~/.mutt/view_attachment.sh %s jpg feh
image/jpeg; ~/.mutt/view_attachment.sh %s jpg feh
image/pjpeg; ~/.mutt/view_attachment.sh %s jpg feh
image/png; ~/.mutt/view_attachment.sh %s png feh
image/gif; ~/.mutt/view_attachment.sh %s gif feh

# PDFs
application/pdf; ~/.mutt/view_attachment.sh %s pdf zathura

# HTML
#text/html; ~/.mutt/view_attachment.sh %s html w3m # try different
# text/html; w3m %s; nametemplate=%s.html
# text/html; w3m -dump %s; nametemplate=%s.html; copiousoutput
text/html; lynx -dump %s; nametemplate=%s.html; copiousoutput
#text/html; firefox %s & sleep 3; description=HTML Text; test=test -n "$DISPLAY";  nametemplate=%s.html

# Plain Text
text/plain; cat; copiousoutput; edit=$VISUAL %s 

# Unidentified files
application/octet-stream; ~/.mutt/view_attachment.sh %s "-"

# Word docs - make sure you install antiword first
application/msword; antiword %s ; copiousoutput