Update of /cvsroot/mhonarc/mharc/lib
In directory subversions:/tmp/cvs-serv32449/lib
Modified Files:
common.mrc.in.dist config.sh.dist lists.def.dist
Log Message:
* web-archive: Added -mharcdir option to specify location of list
specific resource files. If the file <-mharcdir>/<list-name>.mrc
exists, it will be passed into mhonarc, after common.mrc.
* web-archive: Added support for additional mhonarc options to be
specified in lists.def by defining the MHonArc-Options field.
* web-archive: If the No-Search lists.def field is set to 1 for
a list, then searching will be disabled for the archive: no search
index will be created and the $SEARCH-FORM$ custom resource variable
will be set to the empty string.
* web-archive: Changed some of the default pathname values of some
options. In sum, default pathnames that include "../archive/.."
had the "archive/" component removed.
* web-archive: The following resource variables set have different
names:
$MNAV-CGI$ => $PNAV-CGI$
$CUR-MONTH$ => $CUR-PERIOD$
The old names are still set for backwards compatibility.
* lib/common.mrc.in.dist:
. Removed options in MIMEARGS that could cause security problems.
Users can add options that fit their level of comfort.
. Added definition of $PREV-PERIOD-LABEL$ and $NEXT-PERIOD-LABEL$
which are defined as "Prev Period" and "Next Period",
respectively.
These variables are used for the next/prev period links on the
index pages. Note, these values are a change from the
"Prev Month" and "Next Month".
. The next/prev resource variables for the next/prev period links
have different names:
$NEXT-MONTH-LINK$ => $NEXT-PERIOD-LINK$
$PREV-MONTH-LINK$ => $PREV-PERIOD-LINK$
* read-mail: Added explicit "exit 0" at end of script. This is
to avoid a bogus non-zero exit status of filter-spool finds nothing
to do.
Index: common.mrc.in.dist
===================================================================
RCS file: /cvsroot/mhonarc/mharc/lib/common.mrc.in.dist,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** common.mrc.in.dist 6 Mar 2002 19:57:17 -0000 1.13
--- common.mrc.in.dist 23 May 2002 01:21:53 -0000 1.14
***************
*** 24,53 ****
and not here:
$ALL-LISTS-URL$ URL to all archive listing.
! $CUR-MONTH$ Current month in YYYY-MM format.
$LIST-NAME$ Archive/list name.
! $MNAV-CGI$ URL to month navigation cgi program.
$SEARCH-CGI$ URL to search cgi program.
-->
! <!-- Variables representing month links for index pages.
-->
<DefineVar chop>
! PREV-MONTH-LINK
! [<a href="$MNAV-CGI$?a=$LIST-NAME$&m=$CUR-MONTH$&d=prev">Prev Month</a>]
</DefineVar>
<DefineVar chop>
! NEXT-MONTH-LINK
! [<a href="$MNAV-CGI$?a=$LIST-NAME$&m=$CUR-MONTH$&d=next">Next Month</a>]
</DefineVar>
<DefineVar chop>
! TPREV-MONTH-LINK
! [<a href="$MNAV-CGI$?a=$LIST-NAME$&m=$CUR-MONTH$&d=prev&t=t">Prev Month</a>]
</DefineVar>
<DefineVar chop>
! TNEXT-MONTH-LINK
! [<a href="$MNAV-CGI$?a=$LIST-NAME$&m=$CUR-MONTH$&d=next&t=t">Next Month</a>]
</DefineVar>
--- 24,63 ----
and not here:
$ALL-LISTS-URL$ URL to all archive listing.
! $CUR-PERIOD$ Current period in YYYY or YYYY-MM format.
$LIST-NAME$ Archive/list name.
! $PNAV-CGI$ URL to period navigation cgi program.
$SEARCH-CGI$ URL to search cgi program.
-->
! <!-- Variables representing period links for index pages.
-->
<DefineVar chop>
! PREV-PERIOD-LABEL
! Prev Period
</DefineVar>
<DefineVar chop>
! NEXT-PERIOD-LABEL
! Next Period
</DefineVar>
<DefineVar chop>
! PREV-PERIOD-LINK
! [<a href="$PNAV-CGI$?a=$LIST-NAME$&m=$CUR-PERIOD$&d=prev">$PREV-PERIOD-LABEL$</a>]
</DefineVar>
<DefineVar chop>
! NEXT-PERIOD-LINK
! [<a href="$PNAV-CGI$?a=$LIST-NAME$&m=$CUR-PERIOD$&d=next">$NEXT-PERIOD-LEVEL$</a>]
! </DefineVar>
!
! <DefineVar chop>
! TPREV-PERIOD-LINK
! [<a href="$PNAV-CGI$?a=$LIST-NAME$&m=$CUR-PERIOD$&d=prev&t=t">$PREV-PERIOD-LABEL$</a>]
! </DefineVar>
!
! <DefineVar chop>
! TNEXT-PERIOD-LINK
! [<a href="$PNAV-CGI$?a=$LIST-NAME$&m=$CUR-PERIOD$&d=next&t=t">$NEXT-PERIOD-LEVEL$</a>]
</DefineVar>
***************
*** 74,78 ****
</DefineVar>
! <!-- Main index page nav links if MULTIPG ever used.
-->
<DefineVar>
--- 84,90 ----
</DefineVar>
! <!-- Main index page nav links if MULTIPG is ever used.
! This variable could be reference by list-specific resource files
! if MULTIPG is activated.
-->
<DefineVar>
***************
*** 94,97 ****
--- 106,111 ----
<!-- Thread index page nav links if MULTIPG ever used.
+ This variable could be reference by list-specific resource files
+ if MULTIPG is activated.
-->
<DefineVar>
***************
*** 126,135 ****
-->
<MIMEArgs override>
! m2h_external::filter; inline usenameext useicon
m2h_text_plain::filter; attachcheck quote maxwidth=80
! m2h_text_html::filter; attachcheck allownoncidurls notitle
</MIMEArgs>
<!-- Stricter MSGSEP. Not important if CONLEN active.
-->
<MsgSep>
--- 140,151 ----
-->
<MIMEArgs override>
! m2h_external::filter; inline useicon
m2h_text_plain::filter; attachcheck quote maxwidth=80
! m2h_text_html::filter; notitle
</MIMEArgs>
<!-- Stricter MSGSEP. Not important if CONLEN active.
+ XXX: Should this strict setting exist or should we just use
+ MHonArc's default value for MSGSEP as the default?
-->
<MsgSep>
***************
*** 215,223 ****
<table width="100%">
<tr valign="bottom">
! <td align="left"><nobr>$PREV-MONTH-LINK$</nobr></td>
<td align="center"><small
>Last Modified: $MSGLOCALDATE(LAST;%a %b %d %H:%M:%S %Y)$<br>
Messages in reverse chronological order</small></td>
! <td align="right"><nobr>$NEXT-MONTH-LINK$</nobr></td>
</tr>
</table>
--- 231,239 ----
<table width="100%">
<tr valign="bottom">
! <td align="left"><nobr>$PREV-PERIOD-LINK$</nobr></td>
<td align="center"><small
>Last Modified: $MSGLOCALDATE(LAST;%a %b %d %H:%M:%S %Y)$<br>
Messages in reverse chronological order</small></td>
! <td align="right"><nobr>$NEXT-PERIOD-LINK$</nobr></td>
</tr>
</table>
***************
*** 247,252 ****
<table width="100%">
<tr valign="bottom">
! <td align="left"><nobr>$PREV-MONTH-LINK$</nobr></td>
! <td align="right"><nobr>$NEXT-MONTH-LINK$</nobr></td>
</tr>
</table>
--- 263,268 ----
<table width="100%">
<tr valign="bottom">
! <td align="left"><nobr>$PREV-PERIOD-LINK$</nobr></td>
! <td align="right"><nobr>$NEXT-PERIOD-LINK$</nobr></td>
</tr>
</table>
***************
*** 290,298 ****
<table width="100%">
<tr valign="bottom">
! <td align="left"><nobr>$TPREV-MONTH-LINK$</nobr></td>
<td align="center"><small
>Last Modified: $MSGLOCALDATE(LAST;%a %b %d %H:%M:%S %Y)$<br>
Threads in reverse chronological order</small></td>
! <td align="right"><nobr>$TNEXT-MONTH-LINK$</nobr></td>
</tr>
</table>
--- 306,314 ----
<table width="100%">
<tr valign="bottom">
! <td align="left"><nobr>$TPREV-PERIOD-LINK$</nobr></td>
<td align="center"><small
>Last Modified: $MSGLOCALDATE(LAST;%a %b %d %H:%M:%S %Y)$<br>
Threads in reverse chronological order</small></td>
! <td align="right"><nobr>$TNEXT-PERIOD-LINK$</nobr></td>
</tr>
</table>
***************
*** 318,323 ****
<table width="100%">
<tr valign="bottom">
! <td align="left"><nobr>$TPREV-MONTH-LINK$</nobr></td>
! <td align="right"><nobr>$TNEXT-MONTH-LINK$</nobr></td>
</tr>
</table>
--- 334,339 ----
<table width="100%">
<tr valign="bottom">
! <td align="left"><nobr>$TPREV-PERIOD-LINK$</nobr></td>
! <td align="right"><nobr>$TNEXT-PERIOD-LINK$</nobr></td>
</tr>
</table>
Index: config.sh.dist
===================================================================
RCS file: /cvsroot/mhonarc/mharc/lib/config.sh.dist,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** config.sh.dist 11 Mar 2002 06:46:53 -0000 1.4
--- config.sh.dist 23 May 2002 01:21:53 -0000 1.5
***************
*** 14,17 ****
--- 14,18 ----
LISTS_DEF_FILE=$SW_ROOT/lib/lists.def
MHA_RC=$SW_ROOT/lib/common.mrc
+ MHA_RC_DIR=$SW_ROOT/lib/mrc
MBOX_DIR=$SW_ROOT/mbox
HTML_DIR=$SW_ROOT/html
Index: lists.def.dist
===================================================================
RCS file: /cvsroot/mhonarc/mharc/lib/lists.def.dist,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** lists.def.dist 11 Mar 2002 06:59:08 -0000 1.4
--- lists.def.dist 23 May 2002 01:21:53 -0000 1.5
***************
*** 35,38 ****
--- 35,45 ----
## no link will be created. The default is to create a
## link to the raw archives.
+ ## No-Search
+ ## Boolean option ("0" or "1") if searching should be
+ ## disabled. If set to "1", no search index will be created
+ ## for the archive and the $SEARCH-FORM$ custom resource
+ ## variable will be set to the empty string.
+ ## MHonArc-Options
+ ## Additional command-line options to pass to MHonArc.
## Period
## If archive is a yearly or monthly archive. Legal values
---------------------------------------------------------------------
To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHONARC-DEV