summaryrefslogtreecommitdiff
path: root/roundcubemail/plugins/managesieve
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-12-30 12:33:15 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-12-30 12:33:15 +0000
commit2fabe29c604c0e7f1e3ffb78e8a2e8cd2fa89bf4 (patch)
tree69af92ac040be14ee7a3c11b8d94b0dbb5bbdb89 /roundcubemail/plugins/managesieve
parent6736040bb2f80ba70caae4acdc9817acc6061c5f (diff)
- Managesieve: Fix requires generation for multiple actions (#1486397)
git-svn-id: https://svn.roundcube.net/trunk@3189 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/plugins/managesieve')
-rw-r--r--roundcubemail/plugins/managesieve/Changelog2
-rw-r--r--roundcubemail/plugins/managesieve/lib/rcube_sieve.php10
2 files changed, 8 insertions, 4 deletions
diff --git a/roundcubemail/plugins/managesieve/Changelog b/roundcubemail/plugins/managesieve/Changelog
index 2b46e9ffe..85b3728e8 100644
--- a/roundcubemail/plugins/managesieve/Changelog
+++ b/roundcubemail/plugins/managesieve/Changelog
@@ -1,3 +1,5 @@
+- Fix requires generation when many modules are used
+
* version 2.0 [2009-11-02]
-----------------------------------------------------------
- Added 'managesieve_debug' option
diff --git a/roundcubemail/plugins/managesieve/lib/rcube_sieve.php b/roundcubemail/plugins/managesieve/lib/rcube_sieve.php
index a8290b195..fb7645240 100644
--- a/roundcubemail/plugins/managesieve/lib/rcube_sieve.php
+++ b/roundcubemail/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