roundcubemail/program/lib/Roundcube/rcube_mime_decode.php
public function decode($input, $convert = true)
    {
        list($header, $body) = $this->splitBodyHeader($input);

        $struct = $this->do_decode($header, $body);

        if ($struct && $convert) {
            $struct = $this->structure_part($struct);
        }

        return $struct;
    }
public function decode($input, $convert = true)
    {
        list($header, $body) = $this->splitBodyHeader($input);

        $struct = $this->do_decode($header, $body);

        if ($struct && $convert) {
            $struct = $this->structure_part($struct);
        }

        return $struct;
    }
public function decode ( $ input , $ convert = true ) { list ( $ header , $ body ) = $ this -> splitBodyHeader ( $ input ) ; $ struct = $ this -> do_decode ( $ header , $ body ) ; if ( $ struct && $ convert ) { $ struct = $ this -> structure_part ( $ struct ) ; } return $ struct ; }
Performs the decoding process.

@param string $input   The input to decode
@param bool   $convert Convert result to rcube_message_part structure

@return object|bool Decoded results or False on failure
Performs the decoding process .