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);
    }