code: public function messageRead($msgid, $flag_read = true)
      {
          $msg = $this->execute("messageget", array("msgid" => $msgid))->toList();
  
          if ($flag_read) {
              $this->execute("messageget", array("msgid" => $msgid, "flag" => $flag_read));
          }
  
          return $msg;
      }
docs: Returns an existing offline message with ID $msgid from your inbox.
  
  @param  integer $msgid
  @param  boolean $flag_read
  @return array