-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.mailcap
42 lines (31 loc) · 1.35 KB
/
.mailcap
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
35
36
37
38
39
40
41
text/html; w3m -T text/html %s
text/html; w3m -T text/html -dump %s; copiousoutput
text/plain; view %s; needsterminal
text/calendar; icalview.rb; copiousoutput
application/ics; icalview.rb; copiousoutput
# MS Excel
application/x-msexcel; ~/bin/view_attachment %s
application/ms-exc; ~/bin/view_attachment %s
application/excel; ~/bin/view_attachment %s
application/msexcel; ~/bin/view_attachment %s
application/vnd.ms-exc; ~/bin/view_attachment %s
application/vnd.ms-excel; ~/bin/view_attachment %s
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; ~/bin/view_attachment %s
# MS Word
application/msword; ~/bin/view_attachment %s
application/vnd.openxmlformats-officedocument.wordprocessingml.document; ~/bin/view_attachment %s
# Images
image/*; (clear && kitty +kitten icat --hold --scale-up %s && clear); needsterminal
# PDF
application/pdf; ~/bin/view_attachment %s pdf
# HTML
text/html; ~/bin/view_attachment %s html
# Unidentified.
application/octet-stream; ~/bin/view_attachment %s "-"
#application/octet-stream; less %s
#application/pdf; pdftotext -htmlmeta %s - |w3m -T text/html; copiousoutput
application/x-cpio; cpio -tvF --quiet %s; copiousoutput
application/x-tar; tar tvf %s; copiousoutput
application/x-tar-gz; tar tvfz %s; copiousoutput
application/x-zip-compressed; unzip -v %s; copiousoutput
application/zip; unzip -v %s; copiousoutput