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

        if ($this->current == $name)
            return true;

        $script = $this->sieve->getScript($name);

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

        // try to parse from Roundcube format
        $this->script = $this->_parse($script);

        $this->current = $name;

        return true;
    }
public function load($name)
    {
        if (!$this->sieve)
            return $this->_set_error(self::ERROR_INTERNAL);

        if ($this->current == $name)
            return true;

        $script = $this->sieve->getScript($name);

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

        // try to parse from Roundcube format
        $this->script = $this->_parse($script);

        $this->current = $name;

        return true;
    }
public function load ( $ name ) { if ( ! $ this -> sieve ) return $ this -> _set_error ( self :: ERROR_INTERNAL ) ; if ( $ this -> current == $ name ) return true ; $ script = $ this -> sieve -> getScript ( $ name ) ; if ( is_a ( $ script , 'PEAR_Error' ) ) { return $ this -> _set_error ( self :: ERROR_OTHER ) ; } // try to parse from Roundcube format $ this -> script = $ this -> _parse ( $ script ) ; $ this -> current = $ name ; return true ; }
Loads script by name
Loads script by name