summaryrefslogtreecommitdiff
path: root/.mutt/mailcap
blob: 121566f70781076ae6ba17d022c2d8bd5e9ece0f (plain)
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
28
29
30
31
32
33
34

# MS Word documents
application/msword; ~/.mutt/view_attachment.sh %s "-" '/Applications/TextEdit.app'

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

# Video
video/quicktime; ~/.mutt/view_attachment.sh %s mov


# PDFs
#application/pdf; ~/.mutt/view_attachment.sh %s pdf
#
application/pdf; { mv -T %s %s.mv \; ( zathura %s.mv \; rm %s.mv \; ) & } \; 
#application/pdf; evince %s; disown -a
# HTML
# linux
# text/html; firefox-trunk %s & sleep 5; 
# os x
#text/html; ~/.mutt/view_attachment.sh %s html
text/html; w3m -I %{charset} -T text/html; copiousoutput;

#zip
application/zip; ~/.mutt/view_attachment.sh %s zip

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