E-mail is probably one of the most addictive Internet applications. It is not unusual for people to become anxious due to messages that they are waiting for. However, sometimes it is not possible to access your mailbox when you most need it.
This class provides a solution for accessing the latest e-mail messages in a given mailbox via the Web. It builds an RSS feed with summaries of the latest messages in a mailbox.
This feed can be picked by any RSS feed reader application or Web site, so the user can see the latest message headlines without direct access to his mailbox.
This class can be used to generate an RSS feed from the listing of messages in a given mailbox accessible via POP3 or IMAP protocols.
The class connects to a mail server to access a given mailbox using the PHP IMAP extension functions.
It retrieves the unread messages and uses the subject and from headers for the title and the message body for the description of an RSS feed that is stored in a class variable.
The class return the RSS feed as output of the current script or store it in a given file.