alecpl
2009-09-20 fcc34c0cace7c35c4ad82911f1c7c09f40939dfb
- Fix first rule deleting (#1486140)


3 files modified
13 ■■■■■ changed files
plugins/managesieve/Changelog 5 ●●●● patch | view | raw | blame | history
plugins/managesieve/lib/rcube_sieve.php 6 ●●●●● patch | view | raw | blame | history
plugins/managesieve/managesieve.php 2 ●●● patch | view | raw | blame | history
plugins/managesieve/Changelog
@@ -1,5 +1,8 @@
* version 1.7 [2009-09-20]
-----------------------------------------------------------
- Support multiple managesieve hosts using %h variable
  in managesieve_host option
  in managesieve_host option
- Fix first rule deleting (#1486140)
* version 1.6 [2009-09-08]
-----------------------------------------------------------
plugins/managesieve/lib/rcube_sieve.php
@@ -264,9 +264,10 @@
    {
      $script = '';
      $exts = array();
      $idx = 0;
      
      // rules
      foreach ($this->content as $idx => $rule)
      foreach ($this->content as $rule)
        {
      $extension = '';
      $tests = array();
@@ -367,7 +368,8 @@
        }
      
      $script .= "}\n";
      $idx++;
      if ($extension && !isset($exts[$extension]))
        $exts[$extension] = $extension;
    }
plugins/managesieve/managesieve.php
@@ -7,7 +7,7 @@
 * It's clickable interface which operates on text scripts and communicates
 * with server using managesieve protocol. Adds Filters tab in Settings.
 *
 * @version 1.6
 * @version 1.7
 * @author Aleksander 'A.L.E.C' Machniak <alec@alec.pl>
 *
 * Configuration (see config.inc.php.dist):