|
|
@ -117,7 +117,7 @@ class rcube_sieve
|
|
|
|
|
|
|
|
|
|
|
|
$script = $this->_convert_from_squirrel_rules($script);
|
|
|
|
$script = $this->_convert_from_squirrel_rules($script);
|
|
|
|
|
|
|
|
|
|
|
|
$this->script = new rcube_sieve_script($script);
|
|
|
|
$this->script = new rcube_sieve_script($script, $this->disabled);
|
|
|
|
|
|
|
|
|
|
|
|
$this->save();
|
|
|
|
$this->save();
|
|
|
|
|
|
|
|
|
|
|
@ -184,7 +184,7 @@ class rcube_sieve_script
|
|
|
|
* @param string Script's text content
|
|
|
|
* @param string Script's text content
|
|
|
|
* @param array Disabled extensions
|
|
|
|
* @param array Disabled extensions
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function __construct($script, $disabled)
|
|
|
|
public function __construct($script, $disabled=NULL)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (!empty($disabled))
|
|
|
|
if (!empty($disabled))
|
|
|
|
foreach ($disabled as $ext)
|
|
|
|
foreach ($disabled as $ext)
|
|
|
|