alecpl
2009-12-30 a2cb306981d8665f1a3907933d52793f8a216053
- Managesieve: Fix requires generation for multiple actions (#1486397)


3 files modified
11 ■■■■ changed files
CHANGELOG 1 ●●●● patch | view | raw | blame | history
plugins/managesieve/Changelog 2 ●●●●● patch | view | raw | blame | history
plugins/managesieve/lib/rcube_sieve.php 8 ●●●●● patch | view | raw | blame | history
CHANGELOG
@@ -1,6 +1,7 @@
CHANGELOG RoundCube Webmail
===========================
- Managesieve: Fix requires generation for multiple actions (#1486397)
- Fix LDAP problem with special characters in RDN (#1486320)
- Improved handling of message parts of type message/rfc822
- Updated TinyMCE to 3.2.7
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
plugins/managesieve/lib/rcube_sieve.php
@@ -448,6 +448,7 @@
  
      // action(s)
      foreach ($rule['actions'] as $action)
          {
        switch ($action['type'])
        {
          case 'fileinto':
@@ -492,13 +493,14 @@
          break;
        }
      
      $script .= "}\n";
      $idx++;
      if ($extension && !isset($exts[$extension]))
        $exts[$extension] = $extension;
    }
      
      $script .= "}\n";
      $idx++;
    }
      // requires
      if (sizeof($exts))
        $script = 'require ["' . implode('","', $exts) . "\"];\n" . $script;