Update of /cvsroot/mhonarc/mharc/lib
In directory subversions:/tmp/cvs-serv3998/lib
Modified Files:
common.mrc.in.dist config.sh.dist
Log Message:
* bin/extract-mesg-date:
. Added check for new MSG_DATE_FIELDS config.sh variable denoting
the message header fields to extract the date from. The
value of MSG_DATE_FIELDS is used if -datefields is not specified.
* bin/filter-spool:
. If there is no mail in the spool, but .newmail exists,
filter-spool will still process .newmail. .newmail is the
messages copied from the spool when filter-spool is executing.
In the past, even if .newmail exists, no mail in the spool
will cause filter-spool to exit.
* bin/web-archive:
. Added check for MSG_DATE_FIELDS config.sh variable. If set,
its value will passed to MHonArc via the DATEFIELDS resource.
. Define $MESG-CGI$ resource variable for use within MHonArc
resource files.
* cgi-bin/extract-mesg.cgi.in.dist:
. Internal changes so its uses new MHArc::CGI utility routines.
. POD added.
* cgi-bin/mesg.cgi.in.dist:
. NEW: New CGI program to extract a message from an archive based
upon message-id. This allows for persistent URLs to messages
that are immune to archive rebuilds that could change MHonArc
message numbers.
This CGI is referenced in the updated lib/common.mrc.in.dist
resource file via the $MESG-CGI$ resource variable. It is
used for the new [Bookmark Link] on message pages.
* cgi-bin/mnav.cgi.in.dist:
. Added some sanity checks to argument input.
. Internal changes so its uses new MHArc::CGI utility routines.
. POD added.
* lib/common.mrc.in.dist:
. Added "[Bookmark Link]" to message page layout to provide a
persistent link to the message. The link provided makes use
of the new mesg.cgi CGI script.
* lib/config.sh.dist:
. Added MSG_DATE_FIELDS: List of message header fields to extract
the date for a message.
. Added MESG_CGI: URL to persistent message reference CGI program
(mesg.cgi).
* lib/MHArc/CGI.pm:
. NEW: Shared CGI utility routines for mharc CGI scripts.
* lib/MHArc/MailUtil.pm:
. extract_date() routine changed to handle indexed header fields
in date fields argument.
CAUTION: Only use indexed field specification if you are using
a version of MHonArc *newer than* 2.5.11. MHonArc v2.5.11,
and earlier versions, do not support indexed fields for the
DATEFIELDS resource.
* lib/MHArc/Namazu.pm:
. NEW: Collection of routines related to Namazu.
Index: common.mrc.in.dist
===================================================================
RCS file: /cvsroot/mhonarc/mharc/lib/common.mrc.in.dist,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -r1.19 -r1.20
*** common.mrc.in.dist 26 Aug 2002 20:55:33 -0000 1.19
--- common.mrc.in.dist 3 Sep 2002 16:30:47 -0000 1.20
***************
*** 177,186 ****
</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>
! ^From \S+\s+\S+\s+\S+\s+\d+\s+\d+:\d+:\d+\s+\d+
</MsgSep>
--- 177,186 ----
</MIMEArgs>
! <!-- A little stricter MSGSEP. Not important if CONLEN active.
! Try to be more strict than '^From ', but not too strict to deal
! with possible variations.
-->
<MsgSep>
! ^From \S+.*\d+:\d+:\d+
</MsgSep>
***************
*** 461,466 ****
<DefineVar chop>
ORIGINAL-LINK
! [<a href="$EXTRACT-CGI$?a=$LIST-NAME:U$&m=$CUR-PERIOD$&i=$MSGID:U$"
! >Original</a>]
</DefineVar>
--- 461,481 ----
<DefineVar chop>
ORIGINAL-LINK
! <span class="orgLink"
! >[<a href="$EXTRACT-CGI$?a=$LIST-NAME:U$&m=$CUR-PERIOD$&i=$MSGID:U$"
! >Original</a>]</span>
! </DefineVar>
!
! <DefineVar chop>
! BOOKMARK-LINK
! <span class="bookmarkLink"
! >[<a href="$MESG-CGI$?a=$LIST-NAME:U$&i=$MSGID:U$"
! >Bookmark Link</a>]</span>
! </DefineVar>
!
! <DefineVar chop>
! AUTHOR-LINK
! <span class="authorLink">from
! [<a href="$SEARCH-CGI$?query=%2Bfrom%3A$FROMADDR:U$&idxname=$LIST-NAME$&sort=date%3Alate"
! ><em>$FROMNAME$</em></a>]</span>
</DefineVar>
***************
*** 489,496 ****
<table width="100%">
<tr valign="baseline">
! <td align="left"><span class="authorLink">from
! [<a href="$SEARCH-CGI$?query=%2Bfrom%3A$FROMADDR:U$&idxname=$LIST-NAME$&sort=date%3Alate"
! ><em>$FROMNAME$</em></a>]</span></td>
! <td align="right"><span class="orgLink">$ORIGINAL-LINK$</span></td>
</tr></table>
</div>
--- 504,509 ----
<table width="100%">
<tr valign="baseline">
! <td align="left">$AUTHOR-LINK$</td>
! <td align="right">$BOOKMARK-LINK$$ORIGINAL-LINK$</td>
</tr></table>
</div>
Index: config.sh.dist
===================================================================
RCS file: /cvsroot/mhonarc/mharc/lib/config.sh.dist,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** config.sh.dist 26 Aug 2002 05:33:29 -0000 1.11
--- config.sh.dist 3 Sep 2002 16:30:47 -0000 1.12
***************
*** 116,119 ****
--- 116,122 ----
EXTRACT_CGI=$ROOT_URL/cgi-bin/extract-mesg.cgi
+ # URL to persistent message reference CGI program
+ MESG_CGI=$ROOT_URL/cgi-bin/mesg.cgi
+
# Procmail search path for procmailrc.
PROCMAIL_PATH=$SW_ROOT/bin:/usr/local/bin:/bin:/usr/bin
***************
*** 153,154 ****
--- 156,163 ----
# for more information.
#FINAL_MSG_DESTINATION=/dev/null
+
+ # Message header fields to determine date of a message. Format same
+ # as the DATEFIELDS resource of MHonArc. This variable is used
+ # be extract-mesg-date and is passed into MHonArc via the DATEFIELDS
+ # resource.
+ MSG_DATE_FIELDS='received:delivery-date:date'
---------------------------------------------------------------------
To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHONARC-DEV