- Managesieve: Fix requires generation for multiple actions (#1486397)

release-0.6
alecpl 15 years ago
parent 5e3d6c2384
commit a2cb306981

@ -1,6 +1,7 @@
CHANGELOG RoundCube Webmail CHANGELOG RoundCube Webmail
=========================== ===========================
- Managesieve: Fix requires generation for multiple actions (#1486397)
- Fix LDAP problem with special characters in RDN (#1486320) - Fix LDAP problem with special characters in RDN (#1486320)
- Improved handling of message parts of type message/rfc822 - Improved handling of message parts of type message/rfc822
- Updated TinyMCE to 3.2.7 - Updated TinyMCE to 3.2.7

@ -1,3 +1,5 @@
- Fix requires generation when many modules are used
* version 2.0 [2009-11-02] * version 2.0 [2009-11-02]
----------------------------------------------------------- -----------------------------------------------------------
- Added 'managesieve_debug' option - Added 'managesieve_debug' option

@ -448,6 +448,7 @@ class rcube_sieve_script
// action(s) // action(s)
foreach ($rule['actions'] as $action) foreach ($rule['actions'] as $action)
{
switch ($action['type']) switch ($action['type'])
{ {
case 'fileinto': case 'fileinto':
@ -492,13 +493,14 @@ class rcube_sieve_script
break; break;
} }
$script .= "}\n";
$idx++;
if ($extension && !isset($exts[$extension])) if ($extension && !isset($exts[$extension]))
$exts[$extension] = $extension; $exts[$extension] = $extension;
} }
$script .= "}\n";
$idx++;
}
// requires // requires
if (sizeof($exts)) if (sizeof($exts))
$script = 'require ["' . implode('","', $exts) . "\"];\n" . $script; $script = 'require ["' . implode('","', $exts) . "\"];\n" . $script;

Loading…
Cancel
Save