[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: MHonArc RSS 2.0 rcfile example
On 4/14/07, Dave Stragand <dave.stragand@xxxxxxxxxxxxxxx> wrote:
I recently implemented Jeff Breidenbach's RDF feed rcfile that many of
us are using to create news feeds from MHonArc.
Really? People are still using that? I'd switched to RSS quite
some time ago, using the following resource file. However,
yours looks much further refined. Thanks for sharing!
-Jeff
==
<!-- This is a MHonArc rcfile designed to generate RSS output. This
rcfile is called via OTHERINDEXES from the master rcfile. The RSS
format is designed for computer to computer communications of data,
and might be used for providing information produced on one web
site for display or links on another. RSS contains content
information -- and absolutely no information regarding how to
render that content. I used the following resources when
implementing RSS support.
<A HREF="http://www.slashdot.org/slashdot.xml">
http://www.slashdot.org/slashdot.xml</A>
<A HREF="http://blogs.law.harvard.edu/tech/rss">
http://blogs.law.harvard.edu/tech/rss</A>
This rcfile depends on a variable $X-MAILLIST$ which must be
defined in the MHonArc call (using -definevar) Additionally, this
rcfile has many hardcoded references to mail-archive.com.
Jeff Marshall (copied from Jeff Breidenbach's rdf.rc)
Time-stamp: "Sat 03/03/2004 11:58:00" -->
<!-- ------------------------------------ -->
<!-- Section 0: Configuration adjustments -->
<!-- ------------------------------------ -->
<!-- How many messages do we want on the RSS index? -->
<idxsize>
10
</idxsize>
<!-- What file shall we write the RSS index to? -->
<idxfname>
maillist.xml
</idxfname>
<!-- ----------------------------- -->
<!-- Section 1: Specify RSS markup -->
<!-- ----------------------------- -->
<ssmarkup>
<?xml version="1.0"?><rss version="2.0">
</ssmarkup>
<idxpgbegin>
<channel>
<title>$IDXTITLE$ mailing list</title>
<link>http://www.mail-archive.com/$X-MAILLIST$</link>
<description>Email archive for $IDXTITLE$.</description>
<image>
<title>Mail-Archive.com</title>
<url>http://www.mail-archive.com/nanologo.gif</url>
<link>http://www.mail-archive.com/$X-MAILLIST$</link>
</image>
</idxpgbegin>
<litemplate>
<item>
<title>$SUBJECTNA$</title>
<pubDate>$MSGGMTDATE(CUR;%a, %d %h %Y %H:%M:%S GMT)$</pubDate>
<link>http://www.mail-archive.com/$X-MAILLIST$/$MSG$</link>
<guid>http://www.mail-archive.com/$X-MAILLIST$/$MSG$</guid>
</item>
</litemplate>
<idxpgend>
</channel>
</rss>
</idxpgend>
<!-- ----------------------------------------------------- -->
<!-- Section 2: Remove any HTML left from default settings -->
<!-- ----------------------------------------------------- -->
<listbegin>
</listbegin>
<listend>
</listend>
<nodoc>
<nomultipg>
<main>
<!-- --- -->
<!-- End -->
<!-- --- -->
[Index of Archives]
[Bugtraq]
[Yosemite News]
[Mhonarc Home]