#NEWLINE# def is_bad_headers( self ) : #NEWLINE# #INDENT# '\n        Checks for bad headers i.e. newlines in subject, sender or recipients.\n        ' #NEWLINE# reply_to = ( self . reply_to or '' ) #NEWLINE# for val in ( [ self . subject , self . sender , reply_to ] + self . recipients ) : #NEWLINE# #INDENT# for c in '\r\n' : #NEWLINE# #INDENT# if ( c in val ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return False