Mike, I was not able to duplicate the problem you are describing. I pasted your code directly in to a mail handling file on my test-app and sent it an email. In my logs it says 'It worked'.
From the stack trace it looks like it's something that's running on the production system. Is it possible another part of your application might have changed any of the email modules? On Oct 22, 12:22 pm, Mike P <[email protected]> wrote: > using this code > > import logging > from google.appengine.api import mail > from google.appengine.ext import webapp > from google.appengine.ext.webapp.util import run_wsgi_app > from google.appengine.ext.webapp import mail_handlers > > class MailHandler(mail_handlers.InboundMailHandler): > def receive(self, message): > logging.debug("it worked") > > application = webapp.WSGIApplication([('/.*', MailHandler)], > debug=True) > def main(): > logging.getLogger().setLevel(logging.DEBUG) > run_wsgi_app(application) > if __name__ == "__main__": > main() > > I get this error > > 'module' object has no attribute 'Message' > Traceback (most recent call last): > File "/base/python_lib/versions/1/google/appengine/ext/webapp/ > __init__.py", line 509, in __call__ > handler.post(*groups) > File "/base/python_lib/versions/1/google/appengine/ext/webapp/ > mail_handlers.py", line 58, in post > self.receive(mail.InboundEmailMessage(self.request.body)) > File "/base/python_lib/versions/1/google/appengine/api/mail.py", > line 525, in __init__ > mime_message = _parse_mime_message(mime_message) > File "/base/python_lib/versions/1/google/appengine/api/mail.py", > line 206, in _parse_mime_message > if isinstance(mime_message, email.Message.Message): > AttributeError: 'module' object has no attribute 'Message' > > Can anybody help? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
