roundcubemail/program/lib/Roundcube/rcube_imap_generic.php
protected function multLine($line, $escape = false)
    {
        $line = rtrim($line);
        if (preg_match('/\{([0-9]+)\}$/', $line, $m)) {
            $out   = '';
            $str   = substr($line, 0, -strlen($m[0]));
            $bytes = $m[1];

            while (strlen($out) < $bytes) {
                $line = $this->readBytes($bytes);
                if ($line === null) {
                    break;
                }

                $out .= $line;
            }

            $line = $str . ($escape ? $this->escape($out) : $out);
        }

        return $line;
    }
protected function multLine($line, $escape = false)
    {
        $line = rtrim($line);
        if (preg_match('/\{([0-9]+)\}$/', $line, $m)) {
            $out   = '';
            $str   = substr($line, 0, -strlen($m[0]));
            $bytes = $m[1];

            while (strlen($out) < $bytes) {
                $line = $this->readBytes($bytes);
                if ($line === null) {
                    break;
                }

                $out .= $line;
            }

            $line = $str . ($escape ? $this->escape($out) : $out);
        }

        return $line;
    }
protected function multLine ( $ line , $ escape = false ) { $ line = rtrim ( $ line ) ; if ( preg_match ( '/\{([0-9]+)\}$/' , $ line , $ m ) ) { $ out = '' ; $ str = substr ( $ line , 0 , - strlen ( $ m [ 0 ] ) ) ; $ bytes = $ m [ 1 ] ; while ( strlen ( $ out ) < $ bytes ) { $ line = $ this -> readBytes ( $ bytes ) ; if ( $ line === null ) { break ; } $ out .= $ line ; } $ line = $ str . ( $ escape ? $ this -> escape ( $ out ) : $ out ) ; } return $ line ; }
Reads more data from the connection stream when provided
data contain string literal

@param string  $line    Response text
@param bool    $escape  Enables escaping

@return string Line of text response
Reads more data from the connection stream when provided data contain string literal