roundcubemail/program/lib/Roundcube/rcube_mime.php
public static function parse_message($raw_body)
    {
        $conf = array(
            'include_bodies'  => true,
            'decode_bodies'   => true,
            'decode_headers'  => false,
            'default_charset' => self::get_charset(),
        );

        $mime = new rcube_mime_decode($conf);

        return $mime->decode($raw_body);
    }
public static function parse_message($raw_body)
    {
        $conf = array(
            'include_bodies'  => true,
            'decode_bodies'   => true,
            'decode_headers'  => false,
            'default_charset' => self::get_charset(),
        );

        $mime = new rcube_mime_decode($conf);

        return $mime->decode($raw_body);
    }
public static function parse_message ( $ raw_body ) { $ conf = array ( 'include_bodies' => true , 'decode_bodies' => true , 'decode_headers' => false , 'default_charset' => self :: get_charset ( ) , ) ; $ mime = new rcube_mime_decode ( $ conf ) ; return $ mime -> decode ( $ raw_body ) ; }
Parse the given raw message source and return a structure
of rcube_message_part objects.

It makes use of the rcube_mime_decode library

@param string $raw_body The message source

@return object rcube_message_part The message structure
Parse the given raw message source and return a structure of rcube_message_part objects .