code: def get_unread(self, unset_has_mail=False, update_user=False, *args,
                     **kwargs):
          
          params = kwargs.setdefault('params', {})
          if unset_has_mail:
              params['mark'] = 'true'
              if update_user:  # Update the user object
                  # Use setattr to avoid pylint error
                  setattr(self.user, 'has_mail', False)
          return self.get_content(self.config['unread'], *args, **kwargs)
docs: Return a get_content generator for unread messages.
  
          :param unset_has_mail: When True, clear the has_mail flag (orangered)
              for the user.
          :param update_user: If both `unset_has_mail` and `update user` is True,
              set the `has_mail` attribute of the logged-in user to False.
  
          The additional parameters are passed directly into
          :meth:`.get_content`. Note: the `url` parameter cannot be altered.