roundcubemail/program/lib/Roundcube/rcube_message.php
private function get_mime_numbers(&$part)
    {
        if (strlen($part->mime_id))
            $this->mime_parts[$part->mime_id] = &$part;

        if (is_array($part->parts))
            for ($i=0; $i<count($part->parts); $i++)
                $this->get_mime_numbers($part->parts[$i]);
    }
private function get_mime_numbers(&$part)
    {
        if (strlen($part->mime_id))
            $this->mime_parts[$part->mime_id] = &$part;

        if (is_array($part->parts))
            for ($i=0; $i<count($part->parts); $i++)
                $this->get_mime_numbers($part->parts[$i]);
    }
private function get_mime_numbers ( & $ part ) { if ( strlen ( $ part -> mime_id ) ) $ this -> mime_parts [ $ part -> mime_id ] = & $ part ; if ( is_array ( $ part -> parts ) ) for ( $ i = 0 ; $ i < count ( $ part -> parts ) ; $ i ++ ) $ this -> get_mime_numbers ( $ part -> parts [ $ i ] ) ; }
Fill a flat array with references to all parts, indexed by part numbers

@param rcube_message_part $part Message body structure
Fill a flat array with references to all parts indexed by part numbers