1 <!-- $Id: common.mrc.in.dist,v 1.22 2003/07/16 00:49:58 ehood Exp $ -->
2 <!-- ================================================================== -->
3 <!-- MHonArc resource file for mharc mail archives -->
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
11 <!-- ================================================================== -->
13 <!-- ================================================================== -->
14 <!-- Custom Variable Defintions -->
15 <!-- ================================================================== -->
17 The following variables defined by the web-archive program
19 $ALL-LISTS-URL$ URL to all archive listing.
20 $CUR-PERIOD$ Current period in YYYY or YYYY-MM format.
21 $LIST-NAME$ Archive/list name and search index name.
22 $LIST-TITLE$ Archive/list title: generally equals
23 $LIST-NAME$, but can be different like for
25 $PNAV-CGI$ URL to period navigation cgi program.
26 $SEARCH-CGI$ URL to search cgi program.
29 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
30 <!-- Custom Text Variables -->
31 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
32 <!-- The following variable can be redefined to allow for
35 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
37 <!-- Variable for defining any <meta http-equiv> tags. -->
93 THREAD-IDX-BUTTON-LABEL
98 ORIGINAL-MSG-LINK-LABEL
109 <Prev in Thread
114 Next in Thread>
124 More with this subject...
129 Previous by Date
134 Next by Date
139 Previous by Thread
144 Next by Thread
152 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
153 <!-- Links and Buttons -->
154 <!-- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
158 <link rel="stylesheet" type="text/css" href="@@HTML_URL@@/stylesheet.css">
163 <<a href="$PNAV-CGI$?a=$LIST-NAME$&m=$CUR-PERIOD$&d=prev">$PREV-PERIOD-LABEL$</a>]
168 [<a href="$PNAV-CGI$?a=$LIST-NAME$&m=$CUR-PERIOD$&d=next">$NEXT-PERIOD-LABEL$</a>>
173 <<a href="$PNAV-CGI$?a=$LIST-NAME$&m=$CUR-PERIOD$&d=prev&t=t">$PREV-PERIOD-LABEL$</a>]
178 [<a href="$PNAV-CGI$?a=$LIST-NAME$&m=$CUR-PERIOD$&d=next&t=t">$NEXT-PERIOD-LABEL$</a>>
183 <span class="periodLink">$PREV-PERIOD-LINK$</span>
188 <span class="periodLink">$NEXT-PERIOD-LINK$</span>
193 <span class="periodLink">$TPREV-PERIOD-LINK$</span>
198 <span class="periodLink">$TNEXT-PERIOD-LINK$</span>
203 [<b><a href="$TIDXFNAME$">$THREAD-IDX-LABEL$</a></b>]
208 [<b><a href="$IDXFNAME$">$DATE-IDX-LABEL$</a></b>]
211 <!-- Variable representing markup of search form. -->
214 <form method="get" action="$SEARCH-CGI$"
215 ><nobr><input type="text" name="query" size="20"
216 ><input type="submit" name="submit" value="Search"
217 ></nobr><input type="hidden" name="idxname" value="$LIST-NAME$">
218 <small><nobr>[<a href="$SEARCH-CGI$?idxname=$LIST-NAME$">$ADV-SEARCH-LABEL$</a>]</nobr></small></form>
221 <!-- ================================================================== -->
222 <!-- General Resources -->
223 <!-- ================================================================== -->
225 <!-- Since we specify resource settings everytime, no need to save
226 them in archive database.
230 <!-- We should give credit where credit is due, but the style of
231 the link does not go well with what we are trying to do here.
235 <!-- Arguments to content filters.
236 CAUTION: Verify options against security concerns and make
237 any changes accordingly.
240 . Inline images if no disposition provided.
241 . Use content-type-based icons for attachments, see ICONS
243 . Text/plain attachments should be saved to a separate file.
244 By default, MHonArc inlines all text/plain entities.
245 . Italicize quoted text in messages.
246 . Make sure line lengths in text messages do not exceed 80
248 . Suppress output of HTML document title for HTML entities.
251 m2h_external::filter; inline useicon
252 m2h_text_plain::filter; attachcheck quote maxwidth=80
253 m2h_text_html::filter; notitle
256 <!-- A little stricter MSGSEP. Not important if CONLEN active.
257 Try to be more strict than '^From ', but not too strict to deal
258 with possible variations.
261 ^From \S+.*\d+:\d+:\d+
264 <!-- Icons settings copied from documentation. Works with
265 Apache server. Icons not used in index, but attachment
266 filter is given useicon argument. If Apache is not used,
267 or the icon URLs are different, this resource needs to
268 be changed or the useicon argument removed from
269 m2h_external::filter.
272 application/*;[20x22]/icons/generic.gif
273 application/msword;[20x22]/icons/layout.gif
274 application/postscript;[20x22]/icons/ps.gif
275 application/rtf;[20x22]/icons/layout.gif
276 application/x-csh;[20x22]/icons/script.gif
277 application/x-dvi;[20x22]/icons/dvi.gif
278 application/x-gtar;[20x22]/icons/tar.gif
279 application/x-gzip;[20x22]/icons/compressed.gif
280 application/x-ksh;[20x22]/icons/script.gif
281 application/x-latex;[20x22]/icons/tex.gif
282 application/octet-stream;[20x22]/icons/binary.gif
283 application/x-patch;[20x22]/icons/patch.gif
284 application/pdf;[20x22]/icons/pdf.gif
285 application/x-script;[20x22]/icons/script.gif
286 application/x-sh;[20x22]/icons/script.gif
287 application/x-tar;[20x22]/icons/tar.gif
288 application/x-tex;[20x22]/icons/tex.gif
289 application/x-zip-compressed;[20x22]/icons/compressed.gif
290 application/zip;[20x22]/icons/compressed.gif
291 audio/*;[20x22]/icons/sound1.gif
292 chemical/*;[20x22]/icons/sphere2.gif
293 image/*;[20x22]/icons/image2.gif
294 message/external-body;[20x22]/icons/link.gif
295 multipart/*;[20x22]/icons/layout.gif
296 text/*;[20x22]/icons/text.gif
297 video/*;[20x22]/icons/movie.gif
298 */*;[20x22]/icons/generic.gif
301 <!-- ================================================================== -->
303 <!-- ================================================================== -->
305 <!-- Set sorting order of main index pages: Reverse chronological. -->
309 <!-- Show dates in local time. -->
312 <!-- Make date index the default page for the archive. -->
317 <!-- Default date format to use for dates. This can be overridden
318 on a per resource variable instance.
328 <title>$IDXTITLE$</title>
333 <div class="idxTitle">
334 <span class="listTitle"><strong>$IDXTITLE$</strong></span>
336 <div class="metaIdxNav">
337 <nobr>$THREAD-IDX-LINK$<nobr>
338 <nobr>[<a href="../">$TOP-LINK-LABEL$</a>]</nobr>
339 <nobr>[<a href="$ALL-LISTS-URL$">$ALL-LISTS-LABEL$</a>]</nobr>
347 <td align="left">$PREV-PERIOD-BUTTON$</td>
348 <td align="center">$SEARCH-FORM$</td>
349 <td align="right">$NEXT-PERIOD-BUTTON$</td>
352 <div class="dateList">
355 <!-- Date listing is done in day groups with the each day listed in bold
356 and messages for that date listed under it.
359 <div class="dayGroup">
360 <strong>$MSGLOCALDATE$</strong>
370 <li>$SUBJECT$, <i>$FROMNAME$</i>, <tt>$MSGLOCALDATE(CUR;%H:%M)$</tt></li>
377 <td align="left">$PREV-PERIOD-BUTTON$</td>
378 <td align="right">$NEXT-PERIOD-BUTTON$</td>
383 <!-- ================================================================== -->
384 <!-- Thread Index -->
385 <!-- ================================================================== -->
387 <!-- Reverse thread order. -->
390 <!-- Show no indicator of subject-based thread detection since most
392 NOTE: The blank line is important!
402 <title>$TIDXTITLE$</title>
407 <div class="idxTitle">
408 <span class="listTitle"><strong>$TIDXTITLE$</strong></span>
410 <div class="metaIdxNav">
411 <nobr>$DATE-IDX-LINK$<nobr>
412 <nobr>[<a href="../">$TOP-LINK-LABEL$</a>]</nobr>
413 <nobr>[<a href="$ALL-LISTS-URL$">$ALL-LISTS-LABEL$</a>]</nobr>
421 <td align="left">$TPREV-PERIOD-BUTTON$</td>
422 <td align="center">$SEARCH-FORM$</td>
423 <td align="right">$TNEXT-PERIOD-BUTTON$</td>
426 <div class="threadList">
431 <li><div class="threadGroup">
432 <b>$SUBJECT$</b>, <i>$FROMNAME$</i>, <tt>$MSGLOCALDATE(CUR;%Y/%m/%d)$</tt>
440 <li><b>$SUBJECT$</b>, <i>$FROMNAME$</i>, <tt>$MSGLOCALDATE(CUR;%Y/%m/%d)$</tt>
444 <li><div class="tSingle">
445 <b>$SUBJECT$</b>, <i>$FROMNAME$</i>, <tt>$MSGLOCALDATE(CUR;%Y/%m/%d)$</tt>
454 <td align="left">$TPREV-PERIOD-BUTTON$</td>
455 <td align="right">$TNEXT-PERIOD-BUTTON$</td>
460 <!-- ================================================================== -->
461 <!-- Message Pages -->
462 <!-- ================================================================== -->
466 <!-- We clip the subject title to 72 characters to prevent ugly pages
467 due to very long subject lines. The full subject text will still
468 be shown in the formatted message header.
474 <title>$SUBJECTNA:72$</title>
476 <link rev="made" href="mailto:$FROMADDR$">
477 <link rel="start" href="../">
478 <link rel="contents" href="$TIDXFNAME$#$MSGNUM$">
479 <link rel="index" href="$IDXFNAME$#$MSGNUM$">
480 <link rel="prev" href="$MSG(TPREV)$">
481 <link rel="next" href="$MSG(TNEXT)$">
485 <div class="msgTitle">
486 <span class="listTitle"><strong>$LIST-TITLE$</strong></span>
488 <div class="metaIdxNav">
489 <nobr>[<a href="../">$TOP-LINK-LABEL$</a>]</nobr>
490 <nobr>[<a href="$ALL-LISTS-URL$">$ALL-LISTS-LABEL$</a>]</nobr>
495 <!-- Top navigation. -->
497 <a href="$MSG(PREV)$">$PREV-MSG-BUTTON-LABEL$</a>
500 <a href="$MSG(NEXT)$">$NEXT-MSG-BUTTON-LABEL$</a>
503 <a href="$MSG(TPREV)$">$PREV-MSG-BUTTON-LABEL$</a>
506 <a href="$MSG(TNEXT)$">$NEXT-MSG-BUTTON-LABEL$</a>
510 <span class="iaText">$PREV-MSG-BUTTON-LABEL$</span>
513 <span class="iaText">$NEXT-MSG-BUTTON-LABEL$</span>
516 <span class="iaText">$PREV-MSG-BUTTON-LABEL$</span>
519 <span class="iaText">$NEXT-MSG-BUTTON-LABEL$</span>
522 <!-- The following variables represent nav buttons for use in TOPLINKS
523 resource. We use variables so TOPLINKS can be modified without
528 <span class="topDateNav"><nobr>$BUTTON(PREV)$ <strong
529 >[<a href="$IDXFNAME$#$MSGNUM$">$DATE-IDX-BUTTON-LABEL$</a>]</strong
530 > $BUTTON(NEXT)$</nobr></span>
535 <span class="topThreadNav"><nobr>$BUTTON(TPREV)$ <strong
536 >[<a href="$TIDXFNAME$#$MSGNUM$">$THREAD-IDX-BUTTON-LABEL$</a>]</strong
537 > $BUTTON(TNEXT)$</nobr></span>
542 <span class="orgLink"
543 >[<a href="$EXTRACT-CGI$?a=$LIST-NAME:U$&m=$CUR-PERIOD$&i=$MSGID:U$"
544 >$ORIGINAL-MSG-LINK-LABEL$</a>]</span>
549 <span class="bookmarkLink"
550 >[<a href="$MESG-CGI$?a=$LIST-NAME:U$&i=$MSGID:U$"
551 >$BOOKMARK-LINK-LABEL$</a>]</span>
556 <span class="authorLink">from
557 [<a href="$SEARCH-CGI$?query=%2Bfrom%3A$FROMADDR:U$&idxname=$LIST-NAME$&sort=date%3Alate"
558 ><em>$FROMNAME$</em></a>]</span>
563 <div class="topLinks">
564 <table class="mainNav" width="100%">
566 <td width="33%" align="left">$TOP-DATE-NAV$</td>
567 <td width="34%" align="center">$SEARCH-FORM$</td>
568 <td width="33%" align="right">$TOP-THREAD-NAV$</td>
575 <!-- Make sure subject heading is not too long.
576 NOTE: We put the div tag for the message head here since the converted
577 message header cannot be modified after first conversion.
580 <div class="msgSubject">
581 <h2>$SUBJECTNA:72$</h2>
582 <div class="msgLinks">
584 <tr valign="baseline">
585 <td align="left">$AUTHOR-LINK$</td>
586 <td align="right">$BOOKMARK-LINK$$ORIGINAL-LINK$</td>
590 <div class="msgHead">
593 <!-- Format message header in a table. -->
599 <tr valign="baseline">
624 <!-- Put div markers to close message head and start message body.
628 <div class="msgBody">
629 <table cellspacing="1" width="100%"><tr><td>
632 <!-- Disable explicit follow-up/references section and use $TSLICE$ instead.
636 <!-- Set TSLICE resource to represent default $TSLICE$ behavior and
637 mainly to set the maximum message page update ranges when messages
638 are added to the archive. I.e. The before and after values
639 should represent the largest before and after values we will use
646 <!-- We set up slice formatting so current message in thread is not
647 hyperlinked and "greyed out". We could probably use CSS to
648 do this, but <font> seems to still work with most popular
656 <li><b>$SUBJECT$</b>, <i>$FROMNAME$</i>
660 <li><b>$SUBJECT$</b>, <i>$FROMNAME$</i>
664 <li><b>$SUBJECT$</b>, <i>$FROMNAME$</i>
668 <li><span class="sliceCur"><strong>$SUBJECTNA$</strong>,
669 <em>$FROMNAME$</em> <b></span><=</b>
673 <li><span class="sliceCur"><strong>$SUBJECTNA$</strong>,
674 <em>$FROMNAME$</em> <b></span><=</b>
678 <li><span class="sliceCur"><strong>$SUBJECTNA$</strong>,
679 <em>$FROMNAME$</em> <b></span><=</b>
680 </TSliceSingleTxtCur>
687 <a href="$MSG(TPREVIN)$"><strong>$PREV-IN-THREAD-LABEL$</strong></a>]
690 [<a href="$MSG(TNEXTIN)$"><strong>$NEXT-IN-THREAD-LABEL$</strong></a>
693 <TPrevInButtonIA chop>
694 <span class="iaText"><strong>$PREV-IN-THREAD-LABEL$</strong>]</span>
696 <TNextInButtonIA chop>
697 <span class="iaText">[<strong>$NEXT-IN-THREAD-LABEL$</strong></span>
700 <!-- The TSLICE-LISTING variable represents the thread slice listing
701 at the bottom of message pages. If threading is not needed for
702 an archive, this variable can be redefined to the empty string
703 in the archive specific resource file.
708 <table cellspacing="1" cellpadding="4" width="100%">
709 <tr valign="baseline">
710 <td align="left">$BUTTON(TPREVIN)$</td>
711 <th align="center" width="100%"><strong>$CURRENT-THREAD-LABEL$</strong></th>
712 <td align="right">$BUTTON(TNEXTIN)$</td></tr>
713 <tr class="tSliceList"><td colspan="3">
721 <span class="subjectLink">[<a href="$SEARCH-CGI$?query=$NMZ-SUBJECT-QUERY:U$&idxname=$LIST-NAME$&sort=date%3Alate"
722 >$MORE-SUBJECT-LABEL$</a>]</span>
725 <!-- Modify end of message body to include thread slice. We also
726 include convenient next/prev-in-thread links since scanning
727 slice can be inconvenient for simple thread reading.
732 <div class="msgLinks">
734 <tr valign="baseline">
735 <td align="center">$SUBJECT-LINK$</td>
741 <!-- The following variable represents the index links for use in BOTLINKS.
742 We use a variable so archives that disable an index, or add one,
743 can just change this variable instead of redefining BOTLINKS.
747 [<a href="$IDXFNAME$#$MSGNUM$"><strong>$DATE-IDX-BUTTON-LABEL$</strong></a>]
748 [<a href="$TIDXFNAME$#$MSGNUM$"><strong>$THREAD-IDX-BUTTON-LABEL$</strong></a>]
751 <!-- Use a table to format bottom links
754 <tr valign="baseline">
755 <th align="right">$PREV-BY-DATE-LABEL$: </th>
756 <td width="100%"><strong><a href="$MSG(PREV)$">$SUBJECT(PREV)$</a></strong>, <em>$FROMNAME(PREV)$</em></td>
761 <tr valign="baseline">
762 <th align="right">$NEXT-BY-DATE-LABEL$: </th>
763 <td width="100%"><strong><a href="$MSG(NEXT)$">$SUBJECT(NEXT)$</a></strong>, <em>$FROMNAME(NEXT)$</em></td>
768 <tr valign="baseline">
769 <th align="right">$PREV-BY-THREAD-LABEL$: </th>
770 <td width="100%"><strong><a href="$MSG(TPREV)$">$SUBJECT(TPREV)$</a></strong>, <em>$FROMNAME(TPREV)$</em></td>
775 <tr valign="baseline">
776 <th align="right">$NEXT-BY-THREAD-LABEL$: </th>
777 <td width="100%"><strong><a href="$MSG(TNEXT)$">$SUBJECT(TNEXT)$</a></strong>, <em>$FROMNAME(TNEXT)$</em></td>
782 <div class="botLinks">
788 <tr valign="baseline">
789 <th align="right">$INDEXES-LABEL$: </th>
790 <td>$BOTTOM-IDX-LINKS$
791 [<a href="../"><strong>$TOP-LINK-LABEL$</strong></a>]
792 [<a href="$ALL-LISTS-URL$"><strong>$ALL-LISTS-LABEL$</strong></a>]</td>