mailcap.example - rohrpost - A commandline mail client to change the world as we see it.
(HTM) git clone git://r-36.net/rohrpost
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
mailcap.example (999B)
---
1 #
2 # mime/type; app %s; command[; command...]
3 #
4 # MAILCAPS env variable (PATH for mailcap)
5 #
6 # %t -> content-type
7 # \% escape
8 # %{named} parameter from the content-type
9 # %n -> sub-parts in »multipart« entity
10 # %F -> content-typ1 filename-1 content-type2 file-name2 ...
11 #
12 # multipart/mixed; boundary=42 -> %{boundary}=42
13 #
14 # command (case-insensitive):
15 # view (%s -> input file or stdin or stdout)
16 # compose (%s -> output file)
17 # composetyped (+ content-type) (%s -> output file or stdout)
18 # edit (%s -> input file or stdin)
19 # print
20 # test
21 # needsterminal
22 # copiousoutput (output is to be displayed)
23 # description
24 # textualnewlines (convert to crlf before converting to b64)
25 # x11-bitmap (icon filename)
26 # nametemplate (ex: nametemplate=%s.gif)
27 # x-* (mail-specific)
28 #
29 # tests:
30 # application for test condition
31 # 0 -> true
32 # 1 -> false
33 #
34 # composedtype:
35 # return MIME-headers
36 # Content-Transfer-Encoding if b64 or qp
37 # Content-Type needed
38 #
39
40 audio/*; vlc %s;
41 image/*; sxiv %s;
42