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.
Accessing GMail through Python
11–13 of 13 posts
Re: Accessing GMail through Python
#12This 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…
Re: Accessing GMail through Python
#13This 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.