diff options
author | Timotheus Pokorra <pokorra.mailinglists@tbits.net> | 2017-12-22 09:30:37 +0300 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2017-12-22 09:30:37 +0300 |
commit | ba5c39677440138d2b81831fc1943b6c19b6e97d (patch) | |
tree | 3f93826ca93b1d7674dc200a8093f20b4f4e0df6 /plugins | |
parent | 528e82f6c5da2a55924b69db94bc245920528c87 (diff) |
Managesieve, forward dialog using the right existing simple forwarding rules (#6102)
fixes #6101
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/managesieve/lib/Roundcube/rcube_sieve_forward.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/managesieve/lib/Roundcube/rcube_sieve_forward.php b/plugins/managesieve/lib/Roundcube/rcube_sieve_forward.php index d22bd2d3b..b43499f22 100644 --- a/plugins/managesieve/lib/Roundcube/rcube_sieve_forward.php +++ b/plugins/managesieve/lib/Roundcube/rcube_sieve_forward.php @@ -72,7 +72,7 @@ class rcube_sieve_forward extends rcube_sieve_engine if ($this->sieve->load($script)) { foreach ($this->sieve->script->as_array() as $rule) { if (!empty($rule['actions'])) { - if ($rule['actions'][0]['type'] == 'forward') { + if ($rule['actions'][0]['type'] == 'redirect') { $this->script_name = $script; return 0; } @@ -88,7 +88,7 @@ class rcube_sieve_forward extends rcube_sieve_engine foreach ($included as $script) { if ($this->sieve->load($script)) { foreach ($this->sieve->script->as_array() as $rule) { - if (!empty($rule['actions']) && $rule['actions'][0]['type'] == 'forward') { + if (!empty($rule['actions']) && $rule['actions'][0]['type'] == 'redirect') { $this->script_name = $script; return 0; } @@ -103,7 +103,7 @@ class rcube_sieve_forward extends rcube_sieve_engine foreach (array_diff($list, $included, $this->active) as $script) { if ($this->sieve->load($script)) { foreach ($this->sieve->script->as_array() as $rule) { - if (!empty($rule['actions']) && $rule['actions'][0]['type'] == 'forward') { + if (!empty($rule['actions']) && $rule['actions'][0]['type'] == 'redirect') { $this->script_name = $script; return 0; } |