summaryrefslogtreecommitdiff
path: root/plugins/managesieve/lib
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/managesieve/lib')
-rw-r--r--plugins/managesieve/lib/rcube_sieve.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/managesieve/lib/rcube_sieve.php b/plugins/managesieve/lib/rcube_sieve.php
index a8290b195..fb7645240 100644
--- a/plugins/managesieve/lib/rcube_sieve.php
+++ b/plugins/managesieve/lib/rcube_sieve.php
@@ -448,6 +448,7 @@ class rcube_sieve_script
// action(s)
foreach ($rule['actions'] as $action)
+ {
switch ($action['type'])
{
case 'fileinto':
@@ -491,12 +492,13 @@ class rcube_sieve_script
$script .= " \"" . $this->_escape_string($action['reason']) . "\";\n";
break;
}
-
+
+ if ($extension && !isset($exts[$extension]))
+ $exts[$extension] = $extension;
+ }
+
$script .= "}\n";
$idx++;
-
- if ($extension && !isset($exts[$extension]))
- $exts[$extension] = $extension;
}
// requires