code: def _reset(self):
          
          log.debug("Reset all variables")
  
          self._attachments = []
          self._text_plain = []
          self._text_html = []
          self._defects = []
          self._defects_categories = set()
          self._has_defects = False
docs: Reset the state of mail object.