Convert RSS Feeds to email

From LUGOP

Jump to: navigation, search

Contents

Why?

At the last meeting, Ryan was asking about converting RSS feeds to and changes on the wiki to emails. I did such a thing using PHP, which will send out updates to the mailing list. That way, everyone can know if something changes.


Who

Mike Stahnke wrote this little script.

How

The code is written in PHP. Basically, it reads a configuration setting at the top of the script and goes to work. It uses Magpie RSS to parse the XML for the RSS feed.

The code is not the cleanest, but it works.

When

Ideally, the script will be setup to run from cron, however it doesn't currently seem to be working. I think it has to do with the list-serv portion of the application. The script is set to run at 10:30 CST PM daily. It analyzes the RSS feed to see if anything has changed. If it has, it sends an HTML email out to the group.

Where

The code is currently inside /usr/local/src<code> on lugop.org. It can easily be moved. If it is moved, the crontab entry must also be updated.

What

There are two files, an rss directory and a cache directory (that can be removed at will).

/usr/local/src/email_rss.php
/usr/local/src/mail_cron.sh
/usr/local/src/rss


Let me know if something is wrong or not working, as this is the first real test of this. --Stahnma 21:00, 16 February 2006 (CST)

Personal tools