Module Expr Str ImportFrom alias ImportFrom alias Assign NameStore Str ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return TupleLoad NameLoad NameLoad decorator_list NameLoad decorator_list
N/A N/A Handler library for inbound Mail API.

Contains handlers to help with receiving mail.

  InboundMailHandler: Has helper method for easily setting up
    email recievers.
 google.appengine.api mail google.appengine.ext webapp N/A MAIL_HANDLER_URL_PATTERN /_ah/mail/.+ InboundMailHandler N/A N/A webapp RequestHandler N/A N/A Base class for inbound mail handlers.

  Example:

    # Sub-class overrides receive method.
    class HelloReceiver(InboundMailHandler):

      def receive(self, mail_message):
        logging.info('Received greeting from %s: %s' % (mail_message.sender,
                                                        mail_message.body))


    # Map mail handler to appliction.
    application = webapp.WSGIApplication([
        HelloReceiver.mapping(),
    ])
   post N/A N/A self N/A N/A N/A Transforms body to email request. N/A N/A N/A self receive N/A N/A mail InboundEmailMessage N/A N/A self request body N/A receive N/A N/A self mail_message N/A N/A N/A Receive an email message.

    Override this method to implement an email receiver.

    Args:
      mail_message: InboundEmailMessage instance representing received
        email.
     N/A N/A mapping N/A N/A cls N/A N/A N/A Convenience method to map handler class to application.

    Returns:
      Mapping from email URL to inbound mail handler class.
     N/A N/A MAIL_HANDLER_URL_PATTERN cls N/A classmethod N/A