roundcubemail/plugins/managesieve/lib/Roundcube/rcube_sieve.php
public function copy($name, $copy)
    {
        if (!$this->sieve)
            return $this->_set_error(self::ERROR_INTERNAL);

        if ($copy) {
            $content = $this->sieve->getScript($copy);

            if (is_a($content, 'PEAR_Error')) {
                return $this->_set_error(self::ERROR_OTHER);
            }
        }


        return $this->save_script($name, $content);
    }
public function copy($name, $copy)
    {
        if (!$this->sieve)
            return $this->_set_error(self::ERROR_INTERNAL);

        if ($copy) {
            $content = $this->sieve->getScript($copy);

            if (is_a($content, 'PEAR_Error')) {
                return $this->_set_error(self::ERROR_OTHER);
            }
        }


        return $this->save_script($name, $content);
    }
public function copy ( $ name , $ copy ) { if ( ! $ this -> sieve ) return $ this -> _set_error ( self :: ERROR_INTERNAL ) ; if ( $ copy ) { $ content = $ this -> sieve -> getScript ( $ copy ) ; if ( is_a ( $ content , 'PEAR_Error' ) ) { return $ this -> _set_error ( self :: ERROR_OTHER ) ; } } return $ this -> save_script ( $ name , $ content ) ; }
Creates empty script or copy of other script
Creates empty script or copy of other script