code: def add_dspam_headers(self, results):
          
          for header in self.headers:
              hname = self.header_prefix + header
              if header.lower() in results:
                  hvalue = results[header.lower()]
                  logger.debug(
                      '<{}> Adding header {}: {}'.format(self.id, hname, hvalue))
                  self.addheader(hname, hvalue)
              elif header == 'Processed':
                  # X-DSPAM-Processed: Wed Dec 12 02:19:23 2012
                  hvalue = datetime.datetime.now().strftime(
                      '%a %b %d %H:%M:%S %Y')
                  logger.debug(
                      '<{}> Adding header {}: {}'.format(self.id, hname, hvalue))
                  self.addheader(hname, hvalue)
              else:
                  logger.warning(
                      '<{}> Not adding header {}, no data available in '
                      'DSPAM results'.format(self.id, hname))
docs: Format DSPAM headers with passed results, and add them to the message.
  
          Args:
          results -- A results dictionary from DspamClient.