mhonarc-users

Re: How to hack an .rc file to build an index.html file with first text lines of posts

2000-12-06 22:20:30
On December 4, 2000 at 21:02, Gerry Hickman wrote:

It will be nice if we will be able to build index.html files of last 24 hou
rs which
will include in addition to subjects, senders, and date, also the first
few lines of text of each post.

I don't think you can do this at the archiving stage with an rc file,
but you could do it "post archive" by parsing the most recent messages.
Maybe first build an array of files with date/time stamp under 24 hours,
then parse each file in the array stopping after the second \n in the
body of the message, then return those results to the browser
hyperlinked to the "real" messages.

I'd use the MODTIME resource to help facilitate this.  This causes
the message files to have a modify time that matches the date of
the message.  This makes it easy to determine which files represent
messages from the past 24 hours.

--ewh

<Prev in Thread] Current Thread [Next in Thread>