-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.mailcap
85 lines (69 loc) · 3.47 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#; Local mailcap preferences for the MUTT mail client.
#text/html; links -html-assume-codepage utf-8 -force-html -dump %s; test=test -z "$DISPLAY"; nametemplate=%s.html; copiousoutput
text/html; firefox %s && sleep 2; nametemplate=%s.html; copiousoutput
text/html; vivaldi-stable %s && sleep 2; nametemplate=%s.html; copiousoutput
text/html; opera %s && sleep 2; nametemplate=%s.html; copiousoutput
text/html; w3m -I %{charset} -T text/html -dump; copiousoutput
image/*; kitty +kitten icat %s; copiousoutput
image/pjpeg; imv %s; copiousoutput
image/jpeg; imv %s; copiousoutput
image/png; imv %s; copiousoutput
image/gif; imv %s; copiousoutput
video/*; mpv %s
video/*; mplayer %s
audio/*; mpv %s
audio/*; mplayer %s
application/ogg; mpv %s: test=test "$DISPLAY" != ""
text/plain; cat %s; test=test "`echo %{charset} | tr '[A-Z]' '[a-z]'`" = utf-8 ; copiousoutput
application/msword; /usr/bin/lowriter %s
application/vnd.oasis.opendocument.text; /usr/bin/lowriter %s
application/vnd.ms-excel; /usr/bin/localc %s
application/vnd.openxmlformats-officedocument.wordprocessingml.document; /usr/bin/lowriter %s
application/pdf; $HOME/.local/bin/mutt-bgrun zathura '%s'; test=test "$DISPLAY" != ""; description=Portable Document Format; nametemplate=%s.pdf
application/pdf; pdftotext '%s' | less ; test=test "$DISPLAY" = ""
application/pdf; firefox %s;
application/postscript; /usr/bin/xdg-open %s
text/x-sgml; cat %s; copiousoutput
text/x-chdr; cat %s; copiousoutput
text/x-csrc; cat %s; copiousoutput
text/x-tex; cat %s; copiousoutput
text/tex; cat %s; copiousoutput
text/x-sh; cat %s; copiousoutput
text/english; cat %s; copiousoutput
application/epub+zip; $HOME/.local/bin/mutt-bgrun zathura %s; copiousoutput
application/x-gzip-dvi; zcat | dvi2tty-filter -w 132; copiousoutput
application/x-gzip; zcat | less; needsterminal
application/x-gunzip; zcat | less; needsterminal
application/x-gzip; zcat; copiousoutput
application/x-gunzip; zcat; copiousoutput
application/x-bzip2; bzcat |less; needsterminal
application/x-xz; xzcat | less; needsterminal
application/x-lzma; xz --format=lzma --decompress --stdout; copiousoutput
application/x-cpio; cpio -tvF --quiet %s; copiousoutput
application/x-gtar; tar tvf %s; copiousoutput
application/x-tar; tar tvf %s; copiousoutput
application/x-tar-gz; tar tvfz %s; copiousoutput
application/x-rar-compressed; rar v %s; copiousoutput
application/x-zip-compressed; unzip -v %s; copiousoutput
application/zip; unzip -v %s; copiousoutput
application/x-7z-compressed; 7zr x %s; copiousoutput
application/x-csh; cat %s; copiousoutput
application/x-sh; cat %s; copiousoutput
application/x-script; cat %s; copiousoutput
application/x-shellscript; cat %s; copiousoutput
application/x-latex; cat %s; copiousoutput
application/x-tex; cat %s; copiousoutput
application/x-shar; cat %s; copiousoutput
application/x-perl; cat %s; copiousoutput
application/x-troff; groff -Tlatin1 %s; copiousoutput
application/x-troff-man; man -l %s 2>/dev/null; copiousoutput
application/x-troff-me; groff -me -Tlatin1 %s; copiousoutput
# S/MIME signature handling
application/x-pkcs7-signature; openssl pkcs7 -in %s -inform der -noout \
-print_certs -TEXT | less; needsterminal
#application/x-pkcs7-signature; openssl pk7out -inform DER | openssl pkcs7 \
#-print_certs -text -noout ; nametemplate=%s.p7s ; copiousoutput
application/x-pkcs7-mime; openssl smime -pk7out -inform DER | \
openssl pkcs7 -print_certs -text -noout |\
less ; nametemplate=%s.p7m ; test=test %{smime-type} == signed-data
# vim: syntax=mailcap ts=8 sw=8 nowrap