Just spent a few hours hacking together a small script for my Asterisk PBX that checks a IMAP folder for new unseen messages and calls my cell when it sees any. If I pickup it also reads me the number of new messages using a simple text to speech engine.
The script is written in php and executed by cron every half hour. Basically it uses the php imap_header function to check for email and if there are 1 or more unseen messages it places a .call file in the asterisk spool directory.
I want to test the script for a while before posting it just to make sure that it works without any problems.