tAdd 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) LICENSE
       ---
 (DIR) commit ba2b7832201fc7c056db37c33e8dff01fcc4117e
 (DIR) parent 7da6a7500874fe7e27de12ee32a11ac4f7517e4b
 (HTM) Author: Christoph Lohmann <20h@r-36.net>
       Date:   Mon, 28 Mar 2016 11:55:20 +0200
       
       Add mailcap example.
       
       Diffstat:
         examples/mailcap.example            |      42 +++++++++++++++++++++++++++++++
       
       1 file changed, 42 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/examples/mailcap.example b/examples/mailcap.example
       t@@ -0,0 +1,42 @@
       +#
       +# mime/type; app %s; command[; command...]
       +#
       +# MAILCAPS env variable (PATH for mailcap)
       +#
       +# %t -> content-type
       +# \% escape
       +# %{named} parameter from the content-type
       +# %n -> sub-parts in »multipart« entity 
       +# %F -> content-typ1 filename-1 content-type2 file-name2 ...
       +#
       +# multipart/mixed; boundary=42 -> %{boundary}=42
       +#
       +# command (case-insensitive):
       +#         view (%s -> input file or stdin or stdout)
       +#         compose (%s -> output file)
       +#         composetyped (+ content-type) (%s -> output file or stdout)
       +#         edit (%s -> input file or stdin)
       +#         print
       +#         test
       +#         needsterminal
       +#         copiousoutput (output is to be displayed)
       +#         description
       +#         textualnewlines (convert to crlf before converting to b64)
       +#         x11-bitmap (icon filename)
       +#         nametemplate (ex: nametemplate=%s.gif)
       +#         x-* (mail-specific)
       +#
       +# tests:
       +#         application for test condition
       +#         0 -> true
       +#         1 -> false
       +#
       +# composedtype:
       +#         return MIME-headers
       +#         Content-Transfer-Encoding if b64 or qp
       +#         Content-Type needed
       +#
       +
       +audio/*; vlc %s;
       +image/*; sxiv %s;
       +