roundcubemail/plugins/enigma/lib/enigma_engine.php
private function modify_structure_part($part, $msg, $old_id)
    {
        // never cache the body
        $part->body_modified = true;
        $part->encoding      = 'stream';

        // modify part identifier
        if ($old_id) {
            $part->mime_id = !$part->mime_id ? $old_id : ($old_id . '.' . $part->mime_id);
        }

        // Cache the fact it was decrypted
        $this->encrypted_parts[] = $part->mime_id;
        $msg->mime_parts[$part->mime_id] = $part;

        // modify sub-parts
        foreach ((array) $part->parts as $p) {
            $this->modify_structure_part($p, $msg, $old_id);
        }
    }
private function modify_structure_part($part, $msg, $old_id)
    {
        // never cache the body
        $part->body_modified = true;
        $part->encoding      = 'stream';

        // modify part identifier
        if ($old_id) {
            $part->mime_id = !$part->mime_id ? $old_id : ($old_id . '.' . $part->mime_id);
        }

        // Cache the fact it was decrypted
        $this->encrypted_parts[] = $part->mime_id;
        $msg->mime_parts[$part->mime_id] = $part;

        // modify sub-parts
        foreach ((array) $part->parts as $p) {
            $this->modify_structure_part($p, $msg, $old_id);
        }
    }
private function modify_structure_part ( $ part , $ msg , $ old_id ) { // never cache the body $ part -> body_modified = true ; $ part -> encoding = 'stream' ; // modify part identifier if ( $ old_id ) { $ part -> mime_id = ! $ part -> mime_id ? $ old_id : ( $ old_id . '.' . $ part -> mime_id ) ; } // Cache the fact it was decrypted $ this -> encrypted_parts [ ] = $ part -> mime_id ; $ msg -> mime_parts [ $ part -> mime_id ] = $ part ; // modify sub-parts foreach ( ( array ) $ part -> parts as $ p ) { $ this -> modify_structure_part ( $ p , $ msg , $ old_id ) ; } }
Modify decrypted message part

@param rcube_message_part
@param rcube_message
Modify decrypted message part