KitzKikz  KitzKikz: GmailAtomReader   RecentChanges 
 PopularPages 
 SearchPages 
 Home | Trail - GmailAtomReader
 
 

Displaying a Gmail ATOM Feed In Google Reader

I recently discovered Google Reader and that Gmail can output an ATOM feed. However, for some reason, Google's reader can not subscribe to a Gmail feed.

A web search found several solutions, including this one:

In the above article, the writer discusses using a php module such as Magpie or SimplePie to parse the atom feed from Gmail and then spit it back out. One could then subscribe the Google Reader to this reparsed feed. Unfortunately, this solution depends upon knowing the format of the feed provided by Gmail and that it never changes.

It occurred to me that a simpler solution would be to pass the feed, unchanged, from Gmail to Google Reader. Let the reader do the parsing. So, here's my simpler approach:

     <?php readfile("https://<username>:<password>@mail.google.com/mail/feed/atom/<label>/"); ?>

That's it! -- KitzKikz

 

   

 
 EditThisPage · LinksToPage · PageInfo 01/20/09 00:03:18  ·  0.0767s