roundcubemail/program/lib/Roundcube/rcube_imap_cache.php
private function build_message($sql_arr)
    {
        $message = $this->db->decode($sql_arr['data'], true);

        if ($message) {
            $message->flags = array();
            foreach ($this->flags as $idx => $flag) {
                if (($sql_arr['flags'] & $idx) == $idx) {
                    $message->flags[$flag] = true;
                }
           }
        }

        return $message;
    }
private function build_message($sql_arr)
    {
        $message = $this->db->decode($sql_arr['data'], true);

        if ($message) {
            $message->flags = array();
            foreach ($this->flags as $idx => $flag) {
                if (($sql_arr['flags'] & $idx) == $idx) {
                    $message->flags[$flag] = true;
                }
           }
        }

        return $message;
    }
private function build_message ( $ sql_arr ) { $ message = $ this -> db -> decode ( $ sql_arr [ 'data' ] , true ) ; if ( $ message ) { $ message -> flags = array ( ) ; foreach ( $ this -> flags as $ idx => $ flag ) { if ( ( $ sql_arr [ 'flags' ] & $ idx ) == $ idx ) { $ message -> flags [ $ flag ] = true ; } } } return $ message ; }
Converts cache row into message object.

@param array $sql_arr Message row data

@return rcube_message_header Message object
Converts cache row into message object .