#NEWLINE# def apply( self , envelope ) : #NEWLINE# #INDENT# ( spammy , symbols ) = self . scan ( envelope ) #NEWLINE# del envelope . headers [ 'X-Spam-Status' ] #NEWLINE# if spammy : #NEWLINE# #INDENT# envelope . headers [ 'X-Spam-Status' ] = 'YES' #NEWLINE# envelope . headers [ 'X-Spam-Symbols' ] = ', ' . join ( symbols ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# envelope . headers [ 'X-Spam-Status' ] = 'NO'