#NEWLINE# @ app . route ( '/v1/inbox' , methods = [ 'POST' ] ) #NEWLINE# def inbox( ) : #NEWLINE# #INDENT# payload = request . json #NEWLINE# email = incoming_email . save_incoming_email ( payload ) #NEWLINE# logger . info ( "You've got mail. Subject: {subject}" . format ( subject = email . subject ) ) #NEWLINE# resp = make_response ( json . dumps ( { #NEWLINE# #INDENT# 'subject' : email . subject , #NEWLINE# #UNINDENT# } , sort_keys = True , indent = 4 ) , 200 ) #NEWLINE# return email