[web2py] Re: Appengine, inbound mail & code placement...

2011-04-21 Thread Massimo Di Pierro
This is really useful. Thanks for sharing. Would you add a web2pyslice.com On Apr 21, 4:52 pm, mattynoce wrote: > just as a follow-up here, i got this to work simply using a combination of > what everyone said. here's what i did: > > i added the following to my app.yaml above the handlers: sectio

Re: [web2py] Re: Appengine, inbound mail & code placement...

2011-04-21 Thread mattynoce
just as a follow-up here, i got this to work simply using a combination of what everyone said. here's what i did: i added the following to my app.yaml above the handlers: section: inbound_services: - mail under handlers (and for me, below remote_api), i added the following code: - url: /_ah/mai

[web2py] Re: Appengine, inbound mail & code placement...

2011-04-14 Thread Mike Giles
Okay, that issue is figured out, too. from google.appengine.api.mail import InboundEmailMessage message = InboundEmailMessage(request.body) Now on to figuring out the actual programming details. Thanks for the quick answers! -Mike On Apr 14, 9:52 am, Mike Giles wrote: > Yep, I was just abou

Re: [web2py] Re: Appengine, inbound mail & code placement...

2011-04-14 Thread Jonathan Lundell
On Apr 14, 2011, at 3:30 AM, Mike Giles wrote: > > That doesn't seem to work. First, I believe web2py will be looking > for an application named _ah to handle the request (versus a controler > named _ah in myapp). Assuming there is a way to resolve that (which > would be great to know), This is

[web2py] Re: Appengine, inbound mail & code placement...

2011-04-14 Thread Mike Giles
Yep, I was just about to reply that I had gotten the routing piece of it to work with a custom routes.py file. So now the request gets sent to a controller (mail.py) in my app. First step done. The question now, which I guess is a mix of Python/GAE/web2py, is how to take the request object (that

[web2py] Re: Appengine, inbound mail & code placement...

2011-04-14 Thread Anthony
On Thursday, April 14, 2011 6:30:55 AM UTC-4, Mike Giles wrote: > > That doesn't seem to work. First, I believe web2py will be looking > for an application named _ah to handle the request (versus a controler > named _ah in myapp). You can use web2py's URL rewrite functionality to map /_ah/ t

[web2py] Re: Appengine, inbound mail & code placement...

2011-04-14 Thread Mike Giles
That doesn't seem to work. First, I believe web2py will be looking for an application named _ah to handle the request (versus a controler named _ah in myapp). Assuming there is a way to resolve that (which would be great to know), the second issue is that to deal with inbound mail requests you ne