code: def _make_mail(self, complete=True):
          
  
          mail = {}
          keys = get_mail_keys(self.message, complete)
  
          for i in keys:
              log.debug("Getting header or part {!r}".format(i))
              value = getattr(self, i)
              if value:
                  mail[i] = value
  
          # add defects
          mail["has_defects"] = self.has_defects
          if self.has_defects:
              mail["defects"] = self.defects
              mail["defects_categories"] = list(self.defects_categories)
  
          return mail
docs: This method assigns the right values to all tokens of email.
          Returns a parsed object
  
          Keyword Arguments:
              complete {bool} -- If True returns all mails parts
                                  (default: {True})
  
          Returns:
              dict -- Parsed email object