/usr/share/doc/mhonarc/examples/utf-8-encode.mrc is in mhonarc 2.6.18-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 86 | <!-- ================================================================== -->
<!-- File:
$Id: utf-8-encode.mrc,v 1.3 2004/03/15 21:07:18 ehood Exp $
Author:
Earl Hood <earl @ earlhood . com>
Description:
MHonArc, <http://www.mhonarc.org/>, resource file to
encode message text data into Unicode UTF-8. This only
works with v2.6.0, or later, of MHonArc.
Notes:
* This is a more general version of utf-8.mrc. Where
utf-8.mrc basis its conversion via CHARSETCONVERTERS,
this does it via TEXTENCODE.
The advantage of TEXTENCODE, is that message text data,
including headers, are converted to UTF-8 when read. This
provides a performance advantage over the CHARSETCONVERTERS
method, and TEXTENCODE affects all text entities in a
message bodies. The CHARSETCONVERTERS method depends on
individual text-based MIMEFILTERS to explicitly support
CHARSETCONVERTERS. TEXTENCODE is transparent to MIMEFILTERS.
-->
<!-- ================================================================== -->
<TextEncode>
utf-8; MHonArc::UTF8::to_utf8; MHonArc/UTF8.pm
</TextEncode>
<-- With data translated to UTF-8, it simplifies CHARSETCONVERTERS -->
<CharsetConverters override>
default; mhonarc::htmlize
</CharsetConverters>
<-- Need to also register UTF-8-aware text clipping function -->
<TextClipFunc>
MHonArc::UTF8::clip; MHonArc/UTF8.pm
</TextClipFunc>
<!-- The beginning page markup of MHonArc pages need to be modified
to tell clients that the pages are in UTF-8 by using a
<meta http-equiv> tag.
The following resource settings are just the default settings
for each resource but with the appropriate <meta http-equiv>
tag added.
-->
<IdxPgBegin>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>$IDXTITLE$</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<h1>$IDXTITLE$</h1>
</IdxPgBegin>
<TIdxPgBegin>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>$TIDXTITLE$</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<h1>$TIDXTITLE$</h1>
</TIdxPgBegin>
<MsgPgBegin>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>$SUBJECTNA$</title>
<link rev="made" href="mailto:$FROMADDR$">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
</MsgPgBegin>
|