#NEWLINE# def get( self , request , * args , **kwargs ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# message = Message . objects . get ( identifier = kwargs [ 'identifier' ] , sender_email_token = kwargs [ 'token' ] ) #NEWLINE# #UNINDENT# except Message . DoesNotExist : #NEWLINE# #INDENT# return self . render_to_response ( { #NEWLINE# #INDENT# 'not_found' : True , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# if ( message . status != Message . STATUS . pending_sender_confirmation ) : #NEWLINE# #INDENT# return self . render_to_response ( { #NEWLINE# #INDENT# 'already_confirmed' : True , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# message . send_to_recipient ( self . request . is_secure ( ) , self . request . get_host ( ) ) #NEWLINE# return HttpResponseRedirect ( reverse ( 'messaging:sender_confirmed' ) )