title: receive() method of receiving mail resulting in 405 Method Not Allowed
body: <p>In my app whenever  I am trying to receive email of my app and sending request to receive() method then I am getting error <strong>405 Method Not Allowed</strong>.</p>
  
  <p>sending an email is working fine through the id string@appid.appspotmail.com, but receiving email to this id results into this error.</p>
  
  <p>I configured my app like this</p>
  
  <h1>app.yaml</h1>
  
  <pre><code>application: abc
  version: 1
  runtime: python27
  api_version: 1
  threadsafe : false
  
  inbound_services:
  - mail 
  
  handlers:  
  - url: /_ah/mail/.+
    script: incoming_mail.py
    login: admin
  
  - url: /
    script: abc.py 
  </code></pre>
  
  <h1>incoming_mail.py</h1>
  
  <pre><code>import email
  import logging
  from google.appengine.ext import webapp
  from google.appengine.ext.webapp.util import run_wsgi_app
  from google.appengine.ext.webapp.mail_handlers import InboundMailHandler
  
  class LogSenderHandler(InboundMailHandler):
  
      def receive(self,email):
          logging.info("Received a message from: %s" %   email.sender)
  
  
  app = webapp.WSGIApplication([LogSenderHandler.mapping()], debug=True)
  
  def main():
      run_wsgi_app(app)
  
  if __name__ == "__main__":
      main()
  </code></pre>
  
  <p>whenever I am going through this url <a href="http://appid.appspot.com/_ah/mail/string@appid.appspotmail.com" rel="nofollow">http://appid.appspot.com/_ah/mail/string@appid.appspotmail.com</a></p>
  
  <p>I am getting error <strong>405 Method not allowed</strong>.</p>
  
  <p>Completely stuck. Thanks in advance for any help you can offer!</p>