Want more of Bwana? Check out my audio podcast and video podcast
 

gmail headers via atom feeds with geektool

In: geek| macintosh

16 Apr 2005

as you may or may not know, gmail provides an interface to your gmail by using atom feeds. to do this, you need to browse to:

https://USER:PASS@gmail.google.com/gmail/feed/atom

USER and PASS are your gmail username and password. today, i was hacking through some my shell scripts for use with geektool and decided it would be useful to see my new gmail messages on my desktop. hey? why not right? since geektool makes everything so simple, the hardest part was to get the atom feed to show up properly with a script. enter magpierss. magpierss provides an xml parser in php. i’m sure there are plenty of other ways to do this, but to me, this was the easiest and quickest.

download the script here. the output looks something like this once combined with geektool:

just setup geektool to refresh the command ‘php gmailrss.php’ every 5 minutes or so and it will update on the desktop. this was a very quick script and it gets the job done. now i dont have to go to gmail to see my headers.

braytek, geektool, atom, magpierss

Related posts:

10 Responses to gmail headers via atom feeds with geektool

Avatar

Adriaan

April 17th, 2005 at 7:29 am

Hey, that’s cool!

Avatar

Bwana

April 17th, 2005 at 9:40 pm

thanks!

Avatar

i

May 24th, 2005 at 5:14 pm

i can’t get this to work, magpiers doens’t want to process the httpS

Avatar

blacknight

August 3rd, 2005 at 8:24 am

Does not work for me. Tried with the last magprierss version (0.71.1).

Any help greatly appreciated.

Avatar

Bwana

August 3rd, 2005 at 11:39 am

ever since geektool decided not to support mac os x tiger, i haven’t been able to use this anymore. hopefully, if they change their stance, i’ll be able to troubleshoot this better.

Avatar

Bwana

August 3rd, 2005 at 11:46 am

i just ran a quick test independent of geektool and it works fine. make sure you change the path inside the script to point to rss_fetch.inc. the line is

require('/path/to/rss_fetch.inc')

you need to change this ‘/path/to’ to the correct path. Also make sure you change the USER and PASS in the $url statement to your gmail user and pass.

Good luck.

Avatar

Mac

October 1st, 2008 at 3:38 am

This post is very old but I've just switched to os x and learning all the neat things geektool can do. When I run https://USER:PASS@gmail.google.com/gmail/feed/ato...all I get is the following message: "Channel: Gmail – Inbox for USER@gmail.com" I don't see actual emails. Am I missing something?

Avatar

Filou

October 21st, 2008 at 5:22 am

hi, can u reupload the script, pls?
thx a lot.

lg

Avatar

Ghrunter

February 16th, 2009 at 10:35 am

Please re-upload the script? thanks :)

Avatar

Tom

March 7th, 2009 at 6:33 pm

Would love the script!

Comment Form

Additional comments powered by BackType

About Bwana

  • Host of Bwana.org Radio & Bwana.TV. Gamer, movie lover, faithful husband, and certifiably crazy. He is all over the internets if you look closely

    Now I can do iPhone/Gadget review videos again :) 2 hrs ago

Social

  • Adam Tucker: Just don't drop off the internet all together :). I really enjoy your podcasts and personal views o [...]
  • Erik: "No related posts." That's almost poetry, huh? I miss your posts, but it's important to do t [...]
  • ET: Well at least I for one hope you keep doing some kind of new media content!! I know the feeling [...]
  • Mike: I really loved your iPhone related videos. All of your videos are awesome and your audio podcast is [...]
  • AG: Thank you Bwana for all of your help. I was able to successfully install Windows 7 on my brand new [...]


Powered by Rackspace Cloud Hosting - Formerly Mosso
Powered by Rackspace Cloud Hosting