|
|
@ -72,12 +72,13 @@ class rcube_sieve_vacation extends rcube_sieve_engine
|
|
|
|
if ($this->sieve->load($script)) {
|
|
|
|
if ($this->sieve->load($script)) {
|
|
|
|
foreach ($this->sieve->script->as_array() as $rule) {
|
|
|
|
foreach ($this->sieve->script->as_array() as $rule) {
|
|
|
|
if (!empty($rule['actions'])) {
|
|
|
|
if (!empty($rule['actions'])) {
|
|
|
|
if ($rule['actions'][0]['type'] == 'vacation') {
|
|
|
|
$action = $rule['actions'][0];
|
|
|
|
|
|
|
|
if ($action['type'] == 'vacation') {
|
|
|
|
$this->script_name = $script;
|
|
|
|
$this->script_name = $script;
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (empty($master) && $rule['actions'][0]['type'] == 'include') {
|
|
|
|
else if (empty($master) && empty($action['global']) && $action['type'] == 'include') {
|
|
|
|
$included[] = $rule['actions'][0]['target'];
|
|
|
|
$included[] = $action['target'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|