Reading email using wifi

Hi,

I'd like to make a project to control an arduino by sending emails to "its" gmail account. The basic idea is to be able to show a visual alert depending of the contents of an email received in a specific gmail account.

Is this project viable? Can someone direct me to some source code with the basic actions (connecting to access point, getting email, interpreting contents)?

Thanks,

Pedro

Some previous gmail discussions.

https://www.google.com/search?as_q=gmail&as_epq=&as_oq=&as_eq=&as_nlo=&as_nhi=&lr=&cr=&as_qdr=all&as_sitesearch=http%3A%2F%2Fforum.arduino.cc%2Findex&as_occt=any&safe=images&tbs=&as_filetype=&as_rights=&gws_rd=ssl