tags:

views:

197

answers:

2

Hi,

I'd love to write a plugin to monitor my Spam folder in Gmail, and perform various functions (like delete anything with the word Pfizer in it!). I have a bunch of other ideas too for our Google Apps domain.

So, is there a Gmail API? Ideally I'd have a web service could connect to my Gmail server, with the correct authentication, and have access to my data allowing me to Create/Read/Upadte/Delete Gmail messages.

I couldn't see anything obvious that gave me the access I wanted, so hopefully someone here knows how.

Cheers, Shane

p.s. I can code any any language you like, so please don't worry about which language makes sense.

A: 

You should google for it first. :) I'm not sure about WS but you can easily write a desktop app (I tried that in java) - mail client - for that purpose. There's such thing as g4j

den-javamaniac
Actually I did search around, but I couldn't find a specific Google API. Thanks for the reference anyway, but now I know I can use IMAP, it'd a done deal.
Shane
+1  A: 

The API for accessing your Gmail messages is IMAP. There are plenty of IMAP client libraries around.

For authentication check Google's documentation: http://code.google.com/apis/gmail/oauth/

Craig
Perfect, thank you :)
Shane