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.