-
Notifications
You must be signed in to change notification settings - Fork 1
/
mailcap
23 lines (21 loc) · 1.14 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
# brew install antiword khal khard mpv tnef w3m
# pip install mutt-ics
#
# Terminal programs
application/ics; khal import -a $from %s; needsterminal
text/calendar; khal import -a $from %s; needsterminal
application/ms-tnef; tnef -t %s; needsterminal
# GUI programs
application/*; mutt-open.sh %s
image/*; mutt-open.sh %s
text/*; mutt-open.sh %s
video/*; mpv '%s'; test=test -n "$DISPLAY"
# Autoview
application/octet-stream; mutt.octet.filter %s; copiousoutput
application/msword; antiword -w 96 %s 2>/dev/null; copiousoutput
application/ics; mutt-ics; copiousoutput
text/calendar; mutt-ics; copiousoutput
application/pdf; pdftotext -fixed 8 -l 2 %s - 2>/dev/null; copiousoutput
application/x-pdf; pdftotext -fixed 8 -l 2 %s - 2>/dev/null; copiousoutput
application/ms-tnef; tnef -t %s; copiousoutput
text/html; w3m -dump -ppc 8 -graph -s -I %{charset} -T text/html; copiousoutput