Email as an RSS Feed

This is useful if you’d like to be notified of new mail in a POP3 account that you either don’t want to monitor manually, or you can’t monitor because of restricted access to your home email.

Since doing an RSS feed of Caller Id was so easy I thought I’d code this up too, but Ryan Grove has already coded MailFeed. It took me a little while to get it all working, mainly because of PEAR for PHP.

Here are the steps I went throug to get it working:

  • Prerequisite: LAMP/WAMP (with PHP) up and working
  • Install PEAR.. there’s a great guide on this by Harry Fuecks
  • Once PEAR is working, install the Mail_Mime package (using the command ‘pear install Mail_Mime’)
  • Copy over the MailFeed script and modify it’s parameters to connect to your POP3/IMAP/NNTP mailbox. The syntax of the imap_open method was useful to me when I was wondering what parameters to set for my POP3 account.

That’s your lot.. you should now be able to connect to your home server remotely and view an RSS feed of your POP3 inbox.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s