public static function splitMessageStruct($message, $boundary, $EOL = Zend_Mime::LINEEND)
    {
        $parts = self::splitMime($message, $boundary);
        if (count($parts) <= 0) {
            return null;
        }
        $result = array();
        foreach ($parts as $part) {
            self::splitMessage($part, $headers, $body, $EOL);
            $result[] = array('header' => $headers,
                              'body'   => $body    );
        }
        return $result;
    }
public static function splitMessageStruct($message, $boundary, $EOL = Zend_Mime::LINEEND)
    {
        $parts = self::splitMime($message, $boundary);
        if (count($parts) <= 0) {
            return null;
        }
        $result = array();
        foreach ($parts as $part) {
            self::splitMessage($part, $headers, $body, $EOL);
            $result[] = array('header' => $headers,
                              'body'   => $body    );
        }
        return $result;
    }
public static function splitMessageStruct ( $ message , $ boundary , $ EOL = Zend_Mime :: LINEEND ) { $ parts = self :: splitMime ( $ message , $ boundary ) ; if ( count ( $ parts ) <= 0 ) { return null ; } $ result = array ( ) ; foreach ( $ parts as $ part ) { self :: splitMessage ( $ part , $ headers , $ body , $ EOL ) ; $ result [ ] = array ( 'header' => $ headers , 'body' => $ body ) ; } return $ result ; }
decodes a mime encoded String and returns a
struct of parts with header and body

@param  string $message  raw message content
@param  string $boundary boundary as found in content-type
@param  string $EOL EOL string; defaults to {@link Zend_Mime::LINEEND}
@return array|null parts as array('header' => array(name => value), 'body' => content), null if no parts found
@throws Zend_Exception
decodes a mime encoded String and returns a struct of parts with header and body