code: def correspondent_id(self):
          
          try:
              return int(self._thread_element.attrib['data-personid'])
          except (ValueError, KeyError):
              try:
                  return int(self.correspondent_profile.id)
              except:
                  pass
docs: :returns: The id assigned to the correspondent of this message.