aboutsummaryrefslogtreecommitdiffstats
path: root/mutt/mailcap
blob: 1e0e20e99c1b4f90abca8f0df60270de0464cba2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 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 eog
image/jpeg; ~/.mutt/view_attachment.sh %s jpg eog
image/pjpeg; ~/.mutt/view_attachment.sh %s jpg eog
image/png; ~/.mutt/view_attachment.sh %s png eog
image/gif; ~/.mutt/view_attachment.sh %s gif eog
#
# patches
text/x-patch; vimdiff '%s'; needsterminal

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

# 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

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

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