PHP Classes

POP/IMAP to RSS: Generate an RSS feed from messages in a mailbox

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 64%Total: 3,816 This week: 1All time: 841 This week: 560Up
Version License Categories
mail2rss 1.0.0The PHP LicenseEmail, XML
Description 

Author

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.

Innovation Award
PHP Programming Innovation award winner
March 2006
Winner


Prize: One downloadable copy of Komodo Pro
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.

Manuel Lemos
Picture of Vedanta Barooah
Name: Vedanta Barooah <contact>
Classes: 11 packages by
Country: United States United States
Age: 43
All time rank: 497 in United States United States
Week rank: 51 Down6 in United States United States Up
Innovation award
Innovation award
Nominee: 2x

Winner: 2x

Details

mail2rss - vedanta.barooah@gmail.com +-----------------------------------+ class name: mail2rss, functions: 1) mail2rss($username,$password,$mailserver='localhost',$servertype='pop',$port='default') constructor function takes in the mail username, password, mailserver, servertype i.e pop or imap, and the port which defaults to 110 for pop and 143 for imap. 2) makefeed($rss_title="MAIL",$description="MAIL",$web_url=NULL,$item_link=NULL,$language='en-us') the main worker function that reads the mailbox and creates the feed, all the parametes are optional, but passing them to the function will give you a sensible rss feed. 3) show() Spits out the rss feed to a browser or feed reader 4) createfile($filename) create a file with the rss written in, usually the file created should have *.xml extension 5) close() every good citizen closes resources once they opens them, this function does the same by closing the active imap/pop connection if you find this piece of code useful, and need enhancements or find bugs... please do write to me, thanks, vedanta barooah

Screenshots  
  • screenshot.jpg
  Files folder image Files  
File Role Description
Files folder imageold (1 file)
Plain text file mail2rss.class.php Class Main Class File
Plain text file example.php Example Example
Plain text file README Doc. Help File
Plain text file CHANGES Doc. Change Log

  Files folder image Files  /  old  
File Role Description
  Plain text file 1.0 Class Class File

 Version Control Unique User Downloads Download Rankings  
 0%
Total:3,816
This week:1
All time:841
This week:560Up
 User Ratings  
 
 All time
Utility:88%StarStarStarStarStar
Consistency:75%StarStarStarStar
Documentation:61%StarStarStarStar
Examples:63%StarStarStarStar
Tests:-
Videos:-
Overall:64%StarStarStarStar
Rank:700