Live data from Hacker News

Accessing GMail through Python

users.physik.fu-berlin.de

11–13 of 13 posts

Re: Accessing GMail through Python

#11
post #2

This reminds me of a problem I've been wanting to solve for a long time. A lot of web apps use email to deliver notifications and other data like reports. I want to take these emails and process them whenever a new email arrives. A few qualifications: The email server and the processing server are separate. Need to access any attached files as well as the message body and other headers. *Ideally, I don't want to deal…

Selectively forward the email to an account connected to Google App Engine: http://code.google.com/appengine/docs/python/mail/receivingm... Then you can write a handler that basically treats the email as if it had been a web request. (This amazing new feature was just added about a month ago!) Let me know how it went.

Thanks. This does look amazing. I'll try it out and post my results back here. Interested to hear what kind of things you you or others use it for. It really gets you thinking about new possibilities.

Re: Accessing GMail through Python

#12
post #2

This reminds me of a problem I've been wanting to solve for a long time. A lot of web apps use email to deliver notifications and other data like reports. I want to take these emails and process them whenever a new email arrives. A few qualifications: The email server and the processing server are separate. Need to access any attached files as well as the message body and other headers. *Ideally, I don't want to deal…

procmail

Re: Accessing GMail through Python

#13
post #10
post #2

This reminds me of a problem I've been wanting to solve for a long time. A lot of web apps use email to deliver notifications and other data like reports. I want to take these emails and process them whenever a new email arrives. A few qualifications: The email server and the processing server are separate. Need to access any attached files as well as the message body and other headers. *Ideally, I don't want to deal…

The best answer might be Lamson, by Zed Shaw: http://lamsonproject.org/ An extensible SMTP server in Python. You might still have to write some email-specific plugins, but they would probably be reusable. For instance, a CSV-receiver plugin that inserts rows into MySQL.

Thanks for this. Lamson looks very powerful but it's probably overkill for what I'm looking for.
Post reply on HN