roundcubemail/program/lib/Roundcube/rcube_mime_decode.php
protected function boundarySplit($input, $boundary)
    {
        $tmp = explode('--' . $boundary, $input);

        for ($i = 1; $i < count($tmp)-1; $i++) {
            $parts[] = $tmp[$i];
        }

        return $parts;
    }
protected function boundarySplit($input, $boundary)
    {
        $tmp = explode('--' . $boundary, $input);

        for ($i = 1; $i < count($tmp)-1; $i++) {
            $parts[] = $tmp[$i];
        }

        return $parts;
    }
protected function boundarySplit ( $ input , $ boundary ) { $ tmp = explode ( '--' . $ boundary , $ input ) ; for ( $ i = 1 ; $ i < count ( $ tmp ) - 1 ; $ i ++ ) { $ parts [ ] = $ tmp [ $ i ] ; } return $ parts ; }
This function splits the input based on the given boundary

@param string $input    Input to parse
@param string $boundary Boundary

@return array Contains array of resulting mime parts
This function splits the input based on the given boundary