1. Vlad Filippov
  2. InstaMail

Source

InstaMail / main.py

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
from util.MailHandler import MailHandler
import logging, email, os
import controllers.Home

ROOT_DIR = os.path.dirname(__file__)

application = webapp.WSGIApplication([
                                      MailHandler.mapping(), #Used for email post mapping
                                        ('/clearall',controllers.Home.Clear),
                                        ('/opened',controllers.Home.OpenedPage),
                                        ('/destroy',controllers.Home.DestroyEmail),
                                        ('/tasks/clean',controllers.Home.Clean),
                                        ('/',controllers.Home.Index), 
                                        (r'/view/(.*)', controllers.Home.ShowMessage)
                                        ],

                                        debug=True)

def main():
    run_wsgi_app(application)

if __name__ == "__main__":
    main()