Lloyd pointed out that some readers (including Firefox) don't respect
the MIME types and require certain DOS-style file extensions to
'recognize' RSS feeds (ick).
So, updated configuration, with a more Firefox-friendly (and now
somewhat redundant) URL:
@LISTS = (
{
rss_version => '0.91',
archive =>
'http://dlslug.org/pipermail/dlslug-announce/%Y-%B/',
archive_style => 'date',
description => 'DLSLUG-Announce',
num_visible => 10,
scrape_text => 1,
rss_output =>
'/usr/local/apache/htdocs/dlslug.org/xml/rss/dlslug-announce/rss.xml'
}
);
Then I noticed that every Item title was prepended with
[DLSLUG-Announce] (because that's in the subject of each mail) which
was further redundant, so a patch to the script was in order (sent back
to the author):
-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<----
-8<-----8<-----8<-----
--- mailman-archive-to-rss.txt 2004-10-10 17:18:08.000000000 -0400
+++ mailman-archive-to-rss-dlslug-announce.pl 2005-11-04
14:46:11.000000000 -0500
@@ -238,6 +238,15 @@
}
else {
$item_title = $post->{headline};
+
+ # if the list is prefixing every message with the list name
+ # we don't want it in each title since we already have a title
+ # in the RSS feed. We're assuming the description field is
+ # equal to the list name here.
+ if ($item_title =~ m/^\[$list->{description}\]/) {
+ $item_title =~ m/^\[$list->{description}\] (.*)/;
+ $item_title = $1;
+ }
}
$rss->add_item(
-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<-----8<----
-8<-----8<-----8<-----
And he saw that it was good.
-Bill
-----
Bill McGonigle, Owner Work: 603.448.4440
BFC Computing, LLC Home: 603.448.1668
[EMAIL PROTECTED] Mobile: 603.252.2606
http://www.bfccomputing.com/ Pager: 603.442.1833
Jabber: [EMAIL PROTECTED] Text: [EMAIL PROTECTED]
Blog: http://blog.bfccomputing.com/
_______________________________________________
gnhlug-org mailing list
gnhlug-org@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-org