original_string: public static function parseMessage($text, array $opts = array())
      {
          /* Mini-hack to get a blank Horde_Mime part so we can call
           * replaceEOL(). Convert to EOL, since that is the expected EOL for
           * use internally within a Horde_Mime_Part object. */
          $part = new Horde_Mime_Part();
          $rawtext = $part->replaceEOL($text, self::EOL);
  
          /* Find the header. */
          $hdr_pos = self::_findHeader($rawtext, self::EOL);
  
          unset($opts['ctype']);
          $ob = self::_getStructure(substr($rawtext, 0, $hdr_pos), substr($rawtext, $hdr_pos + 2), $opts);
          $ob->buildMimeIds();
          return $ob;
      }
code: public static function parseMessage($text, array $opts = array())
      {
          /* Mini-hack to get a blank Horde_Mime part so we can call
           * replaceEOL(). Convert to EOL, since that is the expected EOL for
           * use internally within a Horde_Mime_Part object. */
          $part = new Horde_Mime_Part();
          $rawtext = $part->replaceEOL($text, self::EOL);
  
          /* Find the header. */
          $hdr_pos = self::_findHeader($rawtext, self::EOL);
  
          unset($opts['ctype']);
          $ob = self::_getStructure(substr($rawtext, 0, $hdr_pos), substr($rawtext, $hdr_pos + 2), $opts);
          $ob->buildMimeIds();
          return $ob;
      }
code_tokens: public static function parseMessage ( $ text , array $ opts = array ( ) ) { /* Mini-hack to get a blank Horde_Mime part so we can call
           * replaceEOL(). Convert to EOL, since that is the expected EOL for
           * use internally within a Horde_Mime_Part object. */ $ part = new Horde_Mime_Part ( ) ; $ rawtext = $ part -> replaceEOL ( $ text , self :: EOL ) ; /* Find the header. */ $ hdr_pos = self :: _findHeader ( $ rawtext , self :: EOL ) ; unset ( $ opts [ 'ctype' ] ) ; $ ob = self :: _getStructure ( substr ( $ rawtext , 0 , $ hdr_pos ) , substr ( $ rawtext , $ hdr_pos + 2 ) , $ opts ) ; $ ob -> buildMimeIds ( ) ; return $ ob ; }
docstring: Attempts to build a Horde_Mime_Part object from message text.
  
  @param string $text  The text of the MIME message.
  @param array $opts   Additional options:
  - forcemime: (boolean) If true, the message data is assumed to be
  MIME data. If not, a MIME-Version header must exist (RFC
  2045 [4]) to be parsed as a MIME message.
  DEFAULT: false
  - level: (integer) Current nesting level of the MIME data.
  DEFAULT: 0
  - no_body: (boolean) If true, don't set body contents of parts (since
  2.2.0).
  DEFAULT: false
  
  @return Horde_Mime_Part  A MIME Part object.
  @throws Horde_Mime_Exception
docstring_tokens: Attempts to build a Horde_Mime_Part object from message text .