Hello All,
I recently implemented Jeff Breidenbach's RDF feed rcfile that many of
us are using to create news feeds from MHonArc. I noticed though, that
Internet Explorer 7 (IE7) cannot seem to read this older format as a
valid feed when found via autodiscovery, so I wrote two new rcfiles
which seem to work well -- this one is RSS 2.0 and my previous post is
for ATOM 1.0. In testing, they both work just fine with IE7.
Admittedly, I'm not much of a coder, so if anyone would like to chime in
and refine these scripts, please feel free. Good comments and input
help the whole MHonArc user community.
Please note the following items:
-You will need to change "www.example.org", "YourArchiveName", "Your
Title", etc. in the code to be appropriate for your particular needs.
-You may need to define a MIME type for ".rss" as "text/xml"
-All times are scripted in GMT. This should work fine for most feed
readers, including IE7.
-Hint: To create this additional index (feed), look at the
documentation for the OTHERINDEXES resource.
(http://www.mhonarc.org/MHonArc/doc/resources/otherindexes.html)
-It is possible (and IMHO preferable) to continue to generate your
existing RDF file (if applicable) to support any readers who currently
subscribe to that feed. You may call multiple additional indexes/feeds
with the OTHERINDEXES resource. Alternatively, you could create a
manual RDF file announcing the replacement feed and point users to the
new feed URL.
-Hint: You will need to run MHonArc via the "MHA-PREVIEW.PL" command
in order to generate the previews/summaries of the messages needed by
this rcfile.
-Feeds may fail validation at http://feedvalidator.org based on the
output of $X-MSG-PREVIEW$ in the | field. If the
first character of the output is a space or other unacceptable
character, the validator may point this out as an error. In my
experience, this does not affect many (if any) feed readers.
-To add the "autodiscovery" of the feed by browsers, add the following
code to the and (and optionally, the
) sections of your -MAIN- rcfile, placed within the
code: http://www.example.org/YourArchiveName/maillist.rss"/>
-Chances are that you are finding this script in a MHonArc Users
archive. Current revisions and bug fixes to this rcfile may be found at
the following permanent URL:
http://www.forwardlook.net/features/rc-rss20.txt
I hope these files will be as useful to others as the RDF rcfiles by
both Jeff and David have been to me.
Thanks,
-Dave Stragand
http://www.forwardlook.net
RC-RSS20.TXT
* - * - * - * - * - * - * - * - * - * - *
10
maillist.rss
Your Title
http://www.example.org/YourArchiveName
Description of Your Feed
en-us
$GMTDATE(%a, %d %b %Y %H:%M:%S)$ GMT
$GMTDATE(%a, %d %b %Y %H:%M:%S)$ GMT
http://blogs.law.harvard.edu/tech/rss
MHonArc RSS 2.0 RCFile
[EMAIL PROTECTED] (Postmaster Display
Name)
[EMAIL PROTECTED] (Webmaster Display
Name)
Your Title
http://www.example.org/images/image.jpg
http://www.example.org/YourArchiveName
$SUBJECTNA$
http://www.example.org/YourArchiveName/$MSG$
$X-MSG-PREVIEW$
$MSGGMTDATE(CUR;%a, %d %b %Y %H:%M:%S)$ GMT
http://www.example.org/YourArchiveName/$MSG$
$FROMADDR$ ($FROMNAME$)