- Fix first rule deleting (#1486140)

release-0.6
alecpl 15 years ago
parent 0dd842dbf5
commit fcc34c0cac

@ -1,5 +1,8 @@
* version 1.7 [2009-09-20]
-----------------------------------------------------------
- Support multiple managesieve hosts using %h variable - 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] * version 1.6 [2009-09-08]
----------------------------------------------------------- -----------------------------------------------------------

@ -264,9 +264,10 @@ class rcube_sieve_script
{ {
$script = ''; $script = '';
$exts = array(); $exts = array();
$idx = 0;
// rules // rules
foreach ($this->content as $idx => $rule) foreach ($this->content as $rule)
{ {
$extension = ''; $extension = '';
$tests = array(); $tests = array();
@ -367,6 +368,7 @@ class rcube_sieve_script
} }
$script .= "}\n"; $script .= "}\n";
$idx++;
if ($extension && !isset($exts[$extension])) if ($extension && !isset($exts[$extension]))
$exts[$extension] = $extension; $exts[$extension] = $extension;

@ -7,7 +7,7 @@
* It's clickable interface which operates on text scripts and communicates * It's clickable interface which operates on text scripts and communicates
* with server using managesieve protocol. Adds Filters tab in Settings. * 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> * @author Aleksander 'A.L.E.C' Machniak <alec@alec.pl>
* *
* Configuration (see config.inc.php.dist): * Configuration (see config.inc.php.dist):

Loading…
Cancel
Save