historical: common.mrc as of 20130114
[mharc.git] / lib / common.mrc
CommitLineData
01c223d0
BOFG
1<!-- $Id: common.mrc.in.dist,v 1.17 2002/07/23 05:51:46 ehood Exp $ -->
2<!-- ================================================================== -->
3<!-- MHonArc Resource File for Mail Archives -->
4<!-- Description:
5 This is the main resource file for the mail archives.
6 it contains all the common formatting characteristics
7 used across archives. Archive specific settings can
8 be set via command-line options the bin/web-archive
9 program.
10 -->
11<!-- ================================================================== -->
12
13<!-- CONLEN should only be set of Content-Length is accurate for the
14 system. Mail delivery under Solaris sets it properly.
15 XXX: Should probably move this to command-line invocation.
16 -->
17<ConLen>
18
19<!-- Added POSIXSTRFTIME so that we can print out timezone specs for
20 archive generation (RT #244804) - baughj, 2005.06.16
21 -->
22<POSIXSTRFTIME>
23
24<!-- Added for rt#106039 -- bernie -->
35bbca1c 25<!-- And #592561 and #592561, importantly also adding the html header line below in IdxPgBegin and MsgPgBegin -- ward -->
01c223d0
BOFG
26<TextEncode>
27utf-8; MHonArc::UTF8::to_utf8; MHonArc/UTF8.pm
28</TextEncode>
29
30<-- With data translated to UTF-8, it simplifies CHARSETCONVERTERS -->
31<CharsetConverters override>
32default; mhonarc::htmlize
33</CharsetConverters>
34
35<-- Need to also register UTF-8-aware text clipping function -->
36<TextClipFunc>
37MHonArc::UTF8::clip; MHonArc/UTF8.pm
38</TextClipFunc>
39
40<!-- ================================================================== -->
41<!-- Custom Variable Defintions -->
42<!-- ================================================================== -->
43<!--
44 The following variables defined by the web-archive program
45 and not here:
46 $ALL-LISTS-URL$ URL to all archive listing.
47 $CUR-PERIOD$ Current period in YYYY or YYYY-MM format.
48 $LIST-NAME$ Archive/list name and search index name.
49 $LIST-TITLE$ Archive/list title: generally equals
50 $LIST-NAME$, but can be different like for
51 CVS commit archives.
52 $PNAV-CGI$ URL to period navigation cgi program.
53 $SEARCH-CGI$ URL to search cgi program.
54 -->
55
56<SPAMMODE>
57
58<AddressModifyCode>
59$_ = 'address@hidden';
60</AddressModifyCode>
61
62<!-- Variables representing period links for index pages.
63 -->
64<DefineVar chop>
65PREV-PERIOD-LABEL
66Prev&nbsp;Period
67</DefineVar>
68
69<DefineVar chop>
70NEXT-PERIOD-LABEL
71Next&nbsp;Period
72</DefineVar>
73
74<DefineVar chop>
75PREV-PERIOD-LINK
76[<a href="$PNAV-CGI$?a=$LIST-NAME$&amp;m=$CUR-PERIOD$&amp;d=prev">$PREV-PERIOD-LABEL$</a>]
77</DefineVar>
78
79<DefineVar chop>
80NEXT-PERIOD-LINK
81[<a href="$PNAV-CGI$?a=$LIST-NAME$&amp;m=$CUR-PERIOD$&amp;d=next">$NEXT-PERIOD-LABEL$</a>]
82</DefineVar>
83
84<DefineVar chop>
85TPREV-PERIOD-LINK
86[<a href="$PNAV-CGI$?a=$LIST-NAME$&amp;m=$CUR-PERIOD$&amp;d=prev&amp;t=t">$PREV-PERIOD-LABEL$</a>]
87</DefineVar>
88
89<DefineVar chop>
90TNEXT-PERIOD-LINK
91[<a href="$PNAV-CGI$?a=$LIST-NAME$&amp;m=$CUR-PERIOD$&amp;d=next&amp;t=t">$NEXT-PERIOD-LABEL$</a>]
92</DefineVar>
93
94<!-- Variable representing markup of search form.
95 -->
96<DefineVar>
97SEARCH-FORM
98<form method="get" action="$SEARCH-CGI$">
99<input type="text" name="query" size="30">
100<input type="submit" name="submit" value="Search">
101<input type="hidden" name="idxname" value="$LIST-NAME$">
102<a href="$SEARCH-CGI$?idxname=$LIST-NAME$">Advanced</a>
103</form>
104</DefineVar>
105
106<DefineVar chop>
107THREAD-IDX-LINK
108[<b><a href="$TIDXFNAME$">Thread&nbsp;Index</a></b>]
109</DefineVar>
110
111<DefineVar chop>
112DATE-IDX-LINK
113[<b><a href="$IDXFNAME$">Date&nbsp;Index</a></b>]
114</DefineVar>
115
116<!-- Main index page nav links if MULTIPG is ever used.
117 This variable could be reference by list-specific resource files
118 if MULTIPG is activated.
119 -->
120<DefineVar>
121MAIN-PAGE-LINKS
122<hr size=1 noshade>
123<table width="100%" border=0 cellpadding=0 cellspacing=0>
124<tr align="center">
125<th colspan=4><small>Page $PAGENUM$ of $NUMOFPAGES$</small></th>
126<tr>
127<td align="left"
128><small>[<a href="$PG(FIRST)$">First&nbsp;Page</a>]</small></td>
129<td align="right"><small>$PGLINK(PREV)$</small></td>
130<td align="left"><small>$PGLINK(NEXT)$</small></td>
131<td align="right"><small>[<a href="$PG(LAST)$">Last&nbsp;Page</a>]</small></td>
132</tr>
133</table>
134<hr size=1 noshade>
135</DefineVar>
136
137<!-- Thread index page nav links if MULTIPG ever used.
138 This variable could be reference by list-specific resource files
139 if MULTIPG is activated.
140 -->
141<DefineVar>
142THREAD-PAGE-LINKS
143<hr size=1 noshade>
144<table width="100%" border=0 cellpadding=0 cellspacing=0>
145<tr align="center">
146<th colspan=4><small>Page $PAGENUM$ of $NUMOFPAGES$</small></th>
147<tr>
148<td align="left"
149><small>[<a href="$PG(TFIRST)$">First&nbsp;Page</a>]</small></td>
150<td align="right"><small>$PGLINK(TPREV)$</small></td>
151<td align="left"><small>$PGLINK(TNEXT)$</small></td>
152<td align="right"><small>[<a href="$PG(TLAST)$">Last&nbsp;Page</a>]</small></td>
153</tr>
154</table>
155<hr size=1 noshade>
156</DefineVar>
157
158<!-- ================================================================== -->
159<!-- General Resources -->
160<!-- ================================================================== -->
161
162<!-- Since we specify resource settings everytime, no need to save
163 them in archive database.
164 -->
165<NoSaveResources>
166
167<!-- Arguments to content filters.
168 CAUTION: Verify options against security concerns and make
169 any changes accordingly.
170 -->
171<MIMEArgs override>
172m2h_external::filter; inline useicon
173m2h_text_plain::filter; attachcheck quote maxwidth=80
174m2h_text_html::filter; notitle
175</MIMEArgs>
176
177<!-- Stricter MSGSEP. Not important if CONLEN active.
178 XXX: Should this strict setting exist or should we just use
179 MHonArc's default value for MSGSEP as the default?
180 -->
181<MsgSep>
182^From \S+\s+\S+\s+\S+\s+\d+\s+\d+:\d+:\d+\s+\d+
183</MsgSep>
184
185<!-- Icons settings copied from documentation. Works with
186 Apache server. Icons not used in index, but attachment
187 filter is given useicon argument. If Apache is not used,
188 or the icon URLs are different, this resource needs to
189 be changed or the useicon argument removed from
190 m2h_external::filter.
191 -->
192<Icons>
193application/*;[20x22]/icons/generic.png
194application/msword;[20x22]/icons/layout.png
195application/postscript;[20x22]/icons/ps.png
196application/rtf;[20x22]/icons/layout.png
197application/x-csh;[20x22]/icons/script.png
198application/x-dvi;[20x22]/icons/dvi.png
199application/x-gtar;[20x22]/icons/tar.png
200application/x-gzip;[20x22]/icons/compressed.png
201application/x-ksh;[20x22]/icons/script.png
202application/x-latex;[20x22]/icons/tex.png
203application/octet-stream;[20x22]/icons/binary.png
204application/x-patch;[20x22]/icons/patch.png
205application/pdf;[20x22]/icons/pdf.png
206application/x-script;[20x22]/icons/script.png
207application/x-sh;[20x22]/icons/script.png
208application/x-tar;[20x22]/icons/tar.png
209application/x-tex;[20x22]/icons/tex.png
210application/x-zip-compressed;[20x22]/icons/compressed.png
211application/zip;[20x22]/icons/compressed.png
212audio/*;[20x22]/icons/sound1.png
213chemical/*;[20x22]/icons/sphere2.png
214image/*;[20x22]/icons/image2.png
215message/external-body;[20x22]/icons/link.png
216multipart/*;[20x22]/icons/layout.png
217text/*;[20x22]/icons/text.png
218video/*;[20x22]/icons/movie.png
219*/*;[20x22]/icons/generic.png
220</Icons>
221
222<!-- ================================================================== -->
223<!-- Main Index -->
224<!-- ================================================================== -->
225
226<!-- Set sorting order of main index pages: Reverse chronological. -->
227<Sort>
228<Reverse>
229
230<!-- Show dates in local time. -->
231<UseLocalTime>
232
233<!-- Make date index the default page for the archive. -->
234<IdxFName>
235index.html
236</IdxFName>
237
238<MsgLocalDateFmt>
239%B %d, %Y
240</MsgLocalDateFmt>
241
242<IdxPgBegin>
243<!doctype html public "-//W3C//DTD HTML//EN">
244<html>
245<head>
246<title>$IDXTITLE$</title>
35bbca1c 247<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
01c223d0
BOFG
248</head>
249<body>
250<center>
251<em>Archives are refreshed every 30 minutes - for details, please visit
252<a href="http://lists.gnu.org/archive/html/">the main index</a>.</em>
253<br>
254You can also <a href="ftp://lists.gnu.org/$LIST-NAME$/">download the archives in mbox format</a>.</em>
255<p>
256<table border=0 cellspacing=2 cellpadding=0 bgcolor="#000000">
257<tr><td><table border=0 bgcolor="#FFFFCC">
258<tr><td><big><big><b>$IDXTITLE$</b></big></big></td></tr></table></tr></table>
259<small><nobr>$THREAD-IDX-LINK$[<a href="../"
35bbca1c
IK
260>Top</a>][<a href="$ALL-LISTS-URL$">All Lists</a>][<a
261href="//lists.gnu.org/mailman/listinfo/$LIST-NAME$">$LIST-NAME$ info page</a>]</nobr
01c223d0
BOFG
262></small>
263$SEARCH-FORM$
264</center>
265</IdxPgBegin>
266
267<ListBegin>
268<table width="100%">
269<tr valign="bottom">
270<td align="left"><nobr>$PREV-PERIOD-LINK$</nobr></td>
271<td align="center"><small
272>Last Modified: $MSGLOCALDATE(LAST;%a %b %d %Y %H:%M:%S %z)$<br>
273Messages in reverse chronological order</small></td>
274<td align="right"><nobr>$NEXT-PERIOD-LINK$</nobr></td>
275</tr>
276</table>
277<hr size="1" noshade>
278<ul>
279</ListBegin>
280
281<!-- Date listing is done in day groups with the each day listed in bold
282 and messages for that date listed under it.
283 -->
284<DayBegin>
285<li><strong>$MSGLOCALDATE$</strong>
286<ul>
287</DayBegin>
288
289<DayEnd>
290</li></ul>
291</DayEnd>
292
293<LITemplate>
294<li>$SUBJECT$, <i>$FROMNAME$</i>, <tt>$MSGLOCALDATE(CUR;%H:%M)$</tt></li>
295</LITemplate>
296
297<ListEnd>
298</ul>
299<hr size="1" noshade>
300<table width="100%">
301<tr valign="bottom">
302<td align="left"><nobr>$PREV-PERIOD-LINK$</nobr></td>
303<td align="right"><nobr>$NEXT-PERIOD-LINK$</nobr></td>
304</tr>
305</table>
306</ListEnd>
307
308<!-- ================================================================== -->
309<!-- Thread Index -->
310<!-- ================================================================== -->
311
312<!-- Reverse thread order. -->
313<TReverse>
314
315<!-- Show no indicator of subject-based thread detection since most
316 people do not care.
317 NOTE: The blank line is important!
318 -->
319<TSubjectBeg>
320
321</TSubjectBeg>
322
323<TIdxPgBegin>
324<!doctype html public "-//W3C//DTD HTML//EN">
325<html>
326<head>
327<title>$TIDXTITLE$</title>
328</head>
329<body>
330<center>
331<em>Archives are refreshed every 30 minutes - for details, please visit <a
332href="http://lists.gnu.org/archive/html/">the main index</a>.</em>
333<br>
334You can also <a href="ftp://lists.gnu.org/$LIST-NAME$/">download the archives in mbox format</a>.</em>
335<p>
336<table border=0 cellspacing=2 cellpadding=0 bgcolor="#000000">
337<tr><td><table border=0 bgcolor="#FFFFCC">
338<tr><td><big><big><b>$TIDXTITLE$</b></big></big></td></tr></table></tr></table>
339<small><nobr
340>$DATE-IDX-LINK$[<a href="../"
341>Top</a>][<a href="$ALL-LISTS-URL$">All Lists</a>]</nobr
342></small>
343$SEARCH-FORM$
344</center>
345</TIdxPgBegin>
346
347<THead>
348<table width="100%">
349<tr valign="bottom">
350<td align="left"><nobr>$TPREV-PERIOD-LINK$</nobr></td>
351<td align="center"><small
352>Last Modified: $MSGLOCALDATE(LAST;%a %b %d %Y %H:%M:%S %z)$<br>
353Threads in reverse chronological order</small></td>
354<td align="right"><nobr>$TNEXT-PERIOD-LINK$</nobr></td>
355</tr>
356</table>
357<hr size="1" noshade>
358<ul>
359</THead>
360
361<TTopBegin>
362<li><b>$SUBJECT$</b>, <i>$FROMNAME$</i>, <tt>$MSGLOCALDATE(CUR;%Y/%m/%d)$</tt>
363</TTopBegin>
364
365<TLiTxt>
366<li><b>$SUBJECT$</b>, <i>$FROMNAME$</i>, <tt>$MSGLOCALDATE(CUR;%Y/%m/%d)$</tt>
367</TLiTxt>
368
369<TSingleTxt>
370<li><b>$SUBJECT$</b>, <i>$FROMNAME$</i>, <tt>$MSGLOCALDATE(CUR;%Y/%m/%d)$</tt>
371</TSingleTxt>
372
373<TFoot>
374</ul>
375<hr size="1" noshade>
376<table width="100%">
377<tr valign="bottom">
378<td align="left"><nobr>$TPREV-PERIOD-LINK$</nobr></td>
379<td align="right"><nobr>$TNEXT-PERIOD-LINK$</nobr></td>
380</tr>
381</table>
382</TFoot>
383
384<!-- ================================================================== -->
385<!-- Message Pages -->
386<!-- ================================================================== -->
387
388<ModTime>
389
390<!-- We clip the subject title to 72 characters to prevent ugly pages
391 due to very long subject lines. The full subject text will still
392 be shown in the formatted message header.
393 -->
394<MsgPgBegin>
395<!doctype html public "-//W3C//DTD HTML//EN">
396<html>
397<head>
398<title>$SUBJECTNA:72$</title>
35bbca1c 399<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
01c223d0
BOFG
400</head>
401<body>
402<center>
403<table border=0 cellspacing=2 cellpadding=0 bgcolor="#000000">
404<tr><td><table border=0 bgcolor="#FFFFCC">
405<tr><td><big><b>$LIST-TITLE$</b></big></td></tr></table></tr></table>
406<small><nobr>[<a href="../"
407>Top</a>][<a href="$ALL-LISTS-URL$">All Lists</a>]</small></nobr>
408$SEARCH-FORM$
409</center>
410</MsgPgBegin>
411
412<TopLinks>
413<hr>
414$BUTTON(PREV)$$BUTTON(NEXT)$$BUTTON(TPREV)$$BUTTON(TNEXT)$[<a
415href="$IDXFNAME$#$MSGNUM$">Date Index</a>][<a
416href="$TIDXFNAME$#$MSGNUM$">Thread Index</a>]
417</TopLinks>
418
419<SubjectHeader>
420<h2>$SUBJECTNA:72$</h2>
421<hr>
422<table border=0>
423<tbody>
424<tr>
425<td align="right" valign="top">
426<b>From</b>: </td>
427<td align="left">
428$FROMNAME$</td>
429</tr>
430</SubjectHeader>
431
432<!-- Format message header in a table. -->
433
434<FieldOrder>
435subject
436date
437user-agent
438</FieldOrder>
439
440<Fieldsbeg>
441
442</FieldsBeg>
443
444<LabelBeg>
445<tr>
446<td align="right" valign="top">
447</LabelBeg>
448
449<LabelEnd>
450: </td>
451</LabelEnd>
452
453<FldBeg>
454<td align="left">
455</FldBeg>
456
457<FldEnd>
458</td>
459</tr>
460</FldEnd>
461
462<FieldsEnd>
463</tbody>
464</table>
465</FieldsEnd>
466
467<LabelStyles>
468-default-:b
469</LabelStyles>
470
471<!-- Disable explicit follow-up/references section and use $TSLICE$ instead.
472 -->
473<NoFolRefs>
474
475<!-- Set TSLICE resource to represent default $TSLICE$ behavior and
476 mainly to set the maximum message page update ranges when messages
477 are added to the archive. I.e. The before and after values
478 should represent the largest before and after values we will use
479 with $TSLICE$.
480 -->
481<TSlice>
48210:10:1
483</TSlice>
484
485<!-- We set up slice formatting so current message in thread is not
486 hyperlinked and "greyed out". We could probably use CSS to
487 do this, but <font> seems to still work with most popular
488 graphical browsers.
489 -->
490<TSliceBeg>
491<ul>
492</TSliceBeg>
493
494<TSliceTopBeginCur>
495<li><font color="#666666"><strong>$SUBJECTNA$</strong>,
496<em>$FROMNAME$</em></font>&nbsp;<b>&lt;=</b>
497</TSliceTopBeginCur>
498
499<TSliceLiTxtCur>
500<li><font color="#666666"><strong>$SUBJECTNA$</strong>,
501<em>$FROMNAME$</em></font>&nbsp;<b>&lt;=</b>
502</TSliceLiTxtCur>
503
504<TSliceSingleTxtCur>
505<li><font color="#666666"><strong>$SUBJECTNA$</strong>,
506<em>$FROMNAME$</em></font>&nbsp;<b>&lt;=</b>
507</TSliceSingleTxtCur>
508
509<TSliceEnd>
510</ul>
511</TSliceEnd>
512
513<!-- Modify end of message body to include thread slice. We also
514 include convenient next/prev-in-thread links since scanning
515 slice can be inconvenient for simple thread reading.
516 -->
517<MsgBodyEnd>
518<hr>
519<form method="post" action="/mp/yyz.py" enctype="multipart/form-data">
520<input type="hidden" name="a" value="$FROMADDRNAME$">
521<input type="hidden" name="b" value="$SUBJECTNA$">
522<input type="hidden" name="d" value="$MSGID$">
523<input type="hidden" name="c" value="$FROMADDRDOMAIN$">
524<center>reply via email to<br><input type="submit" value=" $FROMNAME$ "></center>
525</form>
526<hr>
527<table width="100%">
528<tr><td align="left">$BUTTON(TPREVIN)$</td>
529<td align="center"><b>Current Thread</b></td>
530<td align="right">$BUTTON(TNEXTIN)$</td></tr></table>
531$TSLICE$
532<hr>
533</MsgBodyEnd>