[Svn] r2970 - in trunk/roundcubemail/plugins/managesieve: . lib

trac at roundcube.net trac at roundcube.net
Sun Sep 20 08:33:48 CEST 2009


Author: alec
Date: 2009-09-20 01:33:47 -0500 (Sun, 20 Sep 2009)
New Revision: 2970

Modified:
   trunk/roundcubemail/plugins/managesieve/Changelog
   trunk/roundcubemail/plugins/managesieve/lib/rcube_sieve.php
   trunk/roundcubemail/plugins/managesieve/managesieve.php
Log:
- Fix first rule deleting (#1486140)


Modified: trunk/roundcubemail/plugins/managesieve/Changelog
===================================================================
--- trunk/roundcubemail/plugins/managesieve/Changelog	2009-09-19 08:01:55 UTC (rev 2969)
+++ trunk/roundcubemail/plugins/managesieve/Changelog	2009-09-20 06:33:47 UTC (rev 2970)
@@ -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]
 -----------------------------------------------------------

Modified: trunk/roundcubemail/plugins/managesieve/lib/rcube_sieve.php
===================================================================
--- trunk/roundcubemail/plugins/managesieve/lib/rcube_sieve.php	2009-09-19 08:01:55 UTC (rev 2969)
+++ trunk/roundcubemail/plugins/managesieve/lib/rcube_sieve.php	2009-09-20 06:33:47 UTC (rev 2970)
@@ -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;
 	}

Modified: trunk/roundcubemail/plugins/managesieve/managesieve.php
===================================================================
--- trunk/roundcubemail/plugins/managesieve/managesieve.php	2009-09-19 08:01:55 UTC (rev 2969)
+++ trunk/roundcubemail/plugins/managesieve/managesieve.php	2009-09-20 06:33:47 UTC (rev 2970)
@@ -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 at alec.pl>
  *
  * Configuration (see config.inc.php.dist):

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list