summary refs log blame commit diff stats
path: root/COPYING
blob: 05065e83165762c09d0b9b7be7a859cffbb237c0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                        
Copyright (c) 2009, 2010 hut <hut@lavabit.com>

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
und-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
.\" Automatically generated by Pandoc 2.17.1.1
.\"
.\" Define V font for inline verbatim, using C font in formats
.\" that render this, and otherwise B font.
.ie "\f[CB]x\f[]"x" \{\
. ftr V B
. ftr VI BI
. ftr VB B
. ftr VBI BI
.\}
.el \{\
. ftr V CR
. ftr VI CI
. ftr VB CB
. ftr VBI CBI
.\}
.TH "cha-config" "5" "" "" "MIME type detection in Chawan"
.hy
.SH mime.types
.PP
Chawan uses the mime.types file to recognize certain file extensions for
matching mailcap entries.
See the \f[B]cha-mailcap\f[R](5) documentation for a description of
mailcap.
.SS Search path
.PP
Chawan parses all mime.types files defined in
\f[V]external.mime-types\f[R].
If no mime.types file was found, the built-in mime type associations are
used.
.PP
The default search path for mime.types files is:
.IP
.nf
\f[C]
$HOME/.mime.types:/etc/mime.types:/usr/etc/mime.types:/usr/local/etc/mime.types
\f[R]
.fi
.SS Format
.PP
The mime.types file is a list of whitespace-separated columns.
The first column represents the mime type, all following columns are
file extensions.
.PP
Lines starting with a hash character (#) are recognized as comments, and
are ignored.
.PP
Example:
.IP
.nf
\f[C]
# comment
application/x-example   exmpl   ex
\f[R]
.fi
.PP
This mime.types file would register the file extensions \[lq]exmpl\[rq]
and \[lq]ex\[rq] to be recognized as the mime type
\f[V]application/x-example\f[R].
.SS Note
.PP
Chawan only uses mime.types files for finding mailcap entries; buffers
use an internal mime.types file for content type detection instead.
.PP
The default mime.types file only includes file formats that buffers can
handle, which is rather limited (at the time of writing, 7 file
formats).
Therefore it is highly recommended to configure at least one external
mime.types file if you use mailcap.
.SS See also
.PP
\f[B]cha\f[R](1)