From: hickert Date: Thu, 8 Apr 2010 09:20:13 +0000 (+0000) Subject: Updated sieve management stuff .... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=314e9e24567d073fedfacf4147b67bf121980493;p=gosa.git Updated sieve management stuff .... git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17542 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/mail/personal/mail/sieve/class_sieveElement_If.inc b/gosa-plugins/mail/personal/mail/sieve/class_sieveElement_If.inc index 19dc0fb4f..f0802aefd 100644 --- a/gosa-plugins/mail/personal/mail/sieve/class_sieveElement_If.inc +++ b/gosa-plugins/mail/personal/mail/sieve/class_sieveElement_If.inc @@ -540,7 +540,7 @@ class sieve_if $element_id = $this->object_id."_".$id."_".$obj_id; foreach($_POST as $name => $value){ - if(preg_match("/Remove_Test_Object_".$element_id."_(x|y)/",$name)) { + if(preg_match("/Remove_Test_Object_".$element_id."/",$name)) { return(false); } } diff --git a/gosa-plugins/mail/personal/mail/sieve/class_sieveManagement.inc b/gosa-plugins/mail/personal/mail/sieve/class_sieveManagement.inc index c4455b2a8..1c1da4e2f 100644 --- a/gosa-plugins/mail/personal/mail/sieve/class_sieveManagement.inc +++ b/gosa-plugins/mail/personal/mail/sieve/class_sieveManagement.inc @@ -600,7 +600,6 @@ class sieveManagement extends plugin foreach($_POST as $name => $value){ if(preg_match("/^Add_Test_Object_/",$name)) { $name = preg_replace("/^Add_Test_Object_/","",$name); - $name = preg_replace("/_(x|y)$/","",$name); $test_types_to_add = array( "address" =>_("Address"), diff --git a/gosa-plugins/mail/personal/mail/sieve/templates/block_indent_start.tpl b/gosa-plugins/mail/personal/mail/sieve/templates/block_indent_start.tpl index b6df92bb9..c2b45678e 100644 --- a/gosa-plugins/mail/personal/mail/sieve/templates/block_indent_start.tpl +++ b/gosa-plugins/mail/personal/mail/sieve/templates/block_indent_start.tpl @@ -1,5 +1,5 @@ - +
  diff --git a/gosa-plugins/mail/personal/mail/sieve/templates/edit_frame_base.tpl b/gosa-plugins/mail/personal/mail/sieve/templates/edit_frame_base.tpl index 7aed3c13e..44a306410 100644 --- a/gosa-plugins/mail/personal/mail/sieve/templates/edit_frame_base.tpl +++ b/gosa-plugins/mail/personal/mail/sieve/templates/edit_frame_base.tpl @@ -1,5 +1,5 @@ - +
diff --git a/gosa-plugins/mail/personal/mail/sieve/templates/element_address.tpl b/gosa-plugins/mail/personal/mail/sieve/templates/element_address.tpl index 621cb1f01..645d48f53 100644 --- a/gosa-plugins/mail/personal/mail/sieve/templates/element_address.tpl +++ b/gosa-plugins/mail/personal/mail/sieve/templates/element_address.tpl @@ -1,6 +1,6 @@ {if $Expert} {if $LastError != ""} - +
{$LastError} @@ -9,23 +9,25 @@
{/if} - +
-
{t}Address{/t} - + + + +
- +
@@ -48,7 +52,7 @@ {t}Part of address that should be used{/t} @@ -58,7 +62,7 @@ {t}Comparator{/t} @@ -69,7 +73,7 @@ {t}Operator{/t} @@ -94,7 +98,7 @@ {else} {if $LastError != ""} -
{t}Match type{/t} - {html_options options=$match_types selected=$match_type} @@ -37,9 +39,11 @@ {if $Inverse} - + + {else} - + + {/if}
- {html_options options=$address_parts selected=$address_part} - {html_options options=$comparators selected=$comparator} - {html_options options=$operators selected=$operator}
+
{$LastError} @@ -103,27 +107,31 @@
{/if} - +
{if $match_type == ":count" || $match_type == ":value"} - -
+ + {else} - + + {/if} {t}Address{/t} {if $Inverse} - + + {else} - + + {/if}   - {html_options options=$match_types selected=$match_type} {if $match_type == ":count" || $match_type == ":value"} - {html_options options=$operators selected=$operator} {/if} @@ -134,8 +142,10 @@ - + + + +
diff --git a/gosa-plugins/mail/personal/mail/sieve/templates/element_allof.tpl b/gosa-plugins/mail/personal/mail/sieve/templates/element_allof.tpl index 2620f8182..c23bb2704 100644 --- a/gosa-plugins/mail/personal/mail/sieve/templates/element_allof.tpl +++ b/gosa-plugins/mail/personal/mail/sieve/templates/element_allof.tpl @@ -1,10 +1,12 @@ - +
{if $Inverse} - + + {else} - + + {/if}
{t}All of{/t} diff --git a/gosa-plugins/mail/personal/mail/sieve/templates/element_anyof.tpl b/gosa-plugins/mail/personal/mail/sieve/templates/element_anyof.tpl index a2b977c56..cf4e9ee49 100644 --- a/gosa-plugins/mail/personal/mail/sieve/templates/element_anyof.tpl +++ b/gosa-plugins/mail/personal/mail/sieve/templates/element_anyof.tpl @@ -1,10 +1,12 @@ - +
{if $Inverse} - + + {else} - + + {/if}
{t}Any of{/t} diff --git a/gosa-plugins/mail/personal/mail/sieve/templates/element_boolean.tpl b/gosa-plugins/mail/personal/mail/sieve/templates/element_boolean.tpl index c457b00c6..d2a819a18 100644 --- a/gosa-plugins/mail/personal/mail/sieve/templates/element_boolean.tpl +++ b/gosa-plugins/mail/personal/mail/sieve/templates/element_boolean.tpl @@ -1,11 +1,12 @@ - +
diff --git a/gosa-plugins/mail/personal/mail/sieve/templates/element_comment.tpl b/gosa-plugins/mail/personal/mail/sieve/templates/element_comment.tpl index 20e584677..a886ffb18 100644 --- a/gosa-plugins/mail/personal/mail/sieve/templates/element_comment.tpl +++ b/gosa-plugins/mail/personal/mail/sieve/templates/element_comment.tpl @@ -1,13 +1,15 @@ -
{t}Bool{/t} - {html_options options=$values selected=$selected} - + +
+
diff --git a/gosa-plugins/mail/personal/mail/sieve/templates/element_discard.tpl b/gosa-plugins/mail/personal/mail/sieve/templates/element_discard.tpl index b9d09dad3..062d59bbe 100644 --- a/gosa-plugins/mail/personal/mail/sieve/templates/element_discard.tpl +++ b/gosa-plugins/mail/personal/mail/sieve/templates/element_discard.tpl @@ -1,4 +1,4 @@ -
{t}Comment{/t} {if $Small} - + + {else} - + + {/if}
+
{t}Discard{/t} diff --git a/gosa-plugins/mail/personal/mail/sieve/templates/element_else.tpl b/gosa-plugins/mail/personal/mail/sieve/templates/element_else.tpl index 988f6f69e..75ca65296 100644 --- a/gosa-plugins/mail/personal/mail/sieve/templates/element_else.tpl +++ b/gosa-plugins/mail/personal/mail/sieve/templates/element_else.tpl @@ -1,4 +1,4 @@ - +
{t}Else{/t} diff --git a/gosa-plugins/mail/personal/mail/sieve/templates/element_elsif.tpl b/gosa-plugins/mail/personal/mail/sieve/templates/element_elsif.tpl index 04de874a6..8c7020cb2 100644 --- a/gosa-plugins/mail/personal/mail/sieve/templates/element_elsif.tpl +++ b/gosa-plugins/mail/personal/mail/sieve/templates/element_elsif.tpl @@ -1,4 +1,4 @@ - +
{t}Else If{/t} diff --git a/gosa-plugins/mail/personal/mail/sieve/templates/element_envelope.tpl b/gosa-plugins/mail/personal/mail/sieve/templates/element_envelope.tpl index 4cbb63d47..2cfedc0aa 100644 --- a/gosa-plugins/mail/personal/mail/sieve/templates/element_envelope.tpl +++ b/gosa-plugins/mail/personal/mail/sieve/templates/element_envelope.tpl @@ -1,7 +1,7 @@ {if $Expert} {if $LastError != ""} - +
{$LastError} @@ -10,23 +10,25 @@
{/if} - +
-
{t}Envelope{/t} - + + + +
- +
@@ -49,7 +53,7 @@ {t}Comparator{/t} @@ -60,7 +64,7 @@ {t}Operator{/t} @@ -85,7 +89,7 @@ {else} {if $LastError != ""} -
{t}Match type{/t} - {html_options options=$match_types selected=$match_type} @@ -38,9 +40,11 @@ {if $Inverse} - + + {else} - + + {/if}
- {html_options options=$comparators selected=$comparator} - {html_options options=$operators selected=$operator}
+
{$LastError} @@ -93,29 +97,33 @@
{/if} - +
{if $match_type == ":count" || $match_type == ":value"} - -
+ + {else} - + + {/if} {t}Envelope{/t} {if $Inverse} - + + {else} - + + {/if}   - {html_options options=$match_types selected=$match_type} {if $match_type == ":count" || $match_type == ":value"} - {html_options options=$operators selected=$operator} {/if} @@ -126,8 +134,10 @@ - + + + +
diff --git a/gosa-plugins/mail/personal/mail/sieve/templates/element_exists.tpl b/gosa-plugins/mail/personal/mail/sieve/templates/element_exists.tpl index 69267b826..183ee9069 100644 --- a/gosa-plugins/mail/personal/mail/sieve/templates/element_exists.tpl +++ b/gosa-plugins/mail/personal/mail/sieve/templates/element_exists.tpl @@ -1,15 +1,18 @@ - +
- diff --git a/gosa-plugins/mail/personal/mail/sieve/templates/element_fileinto.tpl b/gosa-plugins/mail/personal/mail/sieve/templates/element_fileinto.tpl index 808246064..20bb61d63 100644 --- a/gosa-plugins/mail/personal/mail/sieve/templates/element_fileinto.tpl +++ b/gosa-plugins/mail/personal/mail/sieve/templates/element_fileinto.tpl @@ -1,13 +1,14 @@ -
+ + {if $LastError != ""} {$LastError}
{/if} {t}Exists{/t} {if $Inverse} - + + {else} - + + {/if}
+
@@ -19,7 +20,7 @@ {if $User_Mode} {else} - {html_options values=$Boxes output=$Boxes selected=$Selected} {/if} diff --git a/gosa-plugins/mail/personal/mail/sieve/templates/element_header.tpl b/gosa-plugins/mail/personal/mail/sieve/templates/element_header.tpl index 79a664c82..ff184c9da 100644 --- a/gosa-plugins/mail/personal/mail/sieve/templates/element_header.tpl +++ b/gosa-plugins/mail/personal/mail/sieve/templates/element_header.tpl @@ -1,6 +1,6 @@ {if $Expert} {if $LastError != ""} -
{t}Move mail into folder{/t} {if $User_Mode} - + {else} - + + {/if}
+
{$LastError} @@ -10,23 +10,25 @@ {/if} - +
-
{t}Header{/t} - + + + +
- +
@@ -49,7 +53,7 @@ {t}Comparator{/t} @@ -60,7 +64,7 @@ {t}operator{/t} @@ -71,7 +75,7 @@
{t}Match type{/t} - {html_options options=$match_types selected=$match_type} @@ -38,9 +40,11 @@ {if $Inverse} - + + {else} - + + {/if}
- {html_options options=$comparators selected=$comparator} - {html_options options=$operators selected=$operator}  
- +
{t}Address fields to include{/t}
@@ -86,7 +90,7 @@ {else} {if $LastError != ""} - +
{$LastError} @@ -96,27 +100,31 @@ {/if} - +
{if $match_type == ":count" || $match_type == ":value"} - - diff --git a/gosa-plugins/mail/personal/mail/sieve/templates/element_if.tpl b/gosa-plugins/mail/personal/mail/sieve/templates/element_if.tpl index a9e9e0e45..0b294427a 100644 --- a/gosa-plugins/mail/personal/mail/sieve/templates/element_if.tpl +++ b/gosa-plugins/mail/personal/mail/sieve/templates/element_if.tpl @@ -1,4 +1,4 @@ -
+ + {else} - + + {/if} {t}Header{/t} {if $Inverse} - + + {else} - + + {/if}   - {html_options options=$match_types selected=$match_type} {if $match_type == ":count" || $match_type == ":value"} - {html_options options=$operators selected=$operator} {/if} @@ -127,8 +135,10 @@ - + + + +
+
{t}Condition{/t} diff --git a/gosa-plugins/mail/personal/mail/sieve/templates/element_keep.tpl b/gosa-plugins/mail/personal/mail/sieve/templates/element_keep.tpl index 1dfc36d4f..4631555e8 100644 --- a/gosa-plugins/mail/personal/mail/sieve/templates/element_keep.tpl +++ b/gosa-plugins/mail/personal/mail/sieve/templates/element_keep.tpl @@ -1,4 +1,4 @@ - +
{t}Keep{/t} diff --git a/gosa-plugins/mail/personal/mail/sieve/templates/element_redirect.tpl b/gosa-plugins/mail/personal/mail/sieve/templates/element_redirect.tpl index 4df479ae1..84a1d0ce0 100644 --- a/gosa-plugins/mail/personal/mail/sieve/templates/element_redirect.tpl +++ b/gosa-plugins/mail/personal/mail/sieve/templates/element_redirect.tpl @@ -1,4 +1,4 @@ - +
{foreach from=$LastError item=val key=key}
diff --git a/gosa-plugins/mail/personal/mail/sieve/templates/element_reject.tpl b/gosa-plugins/mail/personal/mail/sieve/templates/element_reject.tpl index 20186d56a..8c17b295c 100644 --- a/gosa-plugins/mail/personal/mail/sieve/templates/element_reject.tpl +++ b/gosa-plugins/mail/personal/mail/sieve/templates/element_reject.tpl @@ -1,4 +1,4 @@ - +
{foreach from=$LastError item=val key=key} diff --git a/gosa-plugins/mail/personal/mail/sieve/templates/element_require.tpl b/gosa-plugins/mail/personal/mail/sieve/templates/element_require.tpl index 57d532bd2..8fb58595c 100644 --- a/gosa-plugins/mail/personal/mail/sieve/templates/element_require.tpl +++ b/gosa-plugins/mail/personal/mail/sieve/templates/element_require.tpl @@ -1,4 +1,4 @@ -
+
{foreach from=$LastError item=val key=key}
diff --git a/gosa-plugins/mail/personal/mail/sieve/templates/element_size.tpl b/gosa-plugins/mail/personal/mail/sieve/templates/element_size.tpl index 6221da6d9..b43d162bb 100644 --- a/gosa-plugins/mail/personal/mail/sieve/templates/element_size.tpl +++ b/gosa-plugins/mail/personal/mail/sieve/templates/element_size.tpl @@ -1,4 +1,4 @@ - +
diff --git a/gosa-plugins/mail/personal/mail/sieve/templates/element_stop.tpl b/gosa-plugins/mail/personal/mail/sieve/templates/element_stop.tpl index 2aed60318..483bcde76 100644 --- a/gosa-plugins/mail/personal/mail/sieve/templates/element_stop.tpl +++ b/gosa-plugins/mail/personal/mail/sieve/templates/element_stop.tpl @@ -1,4 +1,4 @@ -
{t}Size{/t} @@ -8,16 +8,18 @@ {/if} {if $Inverse} - + + {else} - + + {/if} - {html_options options=$Match_types selected=$Match_type} - {html_options options=$Units selected=$Value_Unit}
+
{t}Stop{/t}
diff --git a/gosa-plugins/mail/personal/mail/sieve/templates/element_vacation.tpl b/gosa-plugins/mail/personal/mail/sieve/templates/element_vacation.tpl index 56d869b3b..88cd34af7 100644 --- a/gosa-plugins/mail/personal/mail/sieve/templates/element_vacation.tpl +++ b/gosa-plugins/mail/personal/mail/sieve/templates/element_vacation.tpl @@ -1,4 +1,4 @@ - +
{foreach from=$LastError item=val key=key} @@ -12,8 +12,10 @@ - @@ -43,8 +45,10 @@ - diff --git a/gosa-plugins/mail/personal/mail/sieve/templates/object_container.tpl b/gosa-plugins/mail/personal/mail/sieve/templates/object_container.tpl index 098051fca..f6d463603 100644 --- a/gosa-plugins/mail/personal/mail/sieve/templates/object_container.tpl +++ b/gosa-plugins/mail/personal/mail/sieve/templates/object_container.tpl @@ -1,9 +1,9 @@ -
{t}Vacation Message{/t} - + + + +
{t}Vacation message{/t} - + + + +
+
- - -
+   + {image path='plugins/mail/images/sieve_move_object_up.png' action="Move_Up_Object_{$ID}" title="{t}Move object up one position{/t}"} @@ -14,8 +14,7 @@ title="{t}Remove object{/t}"} - + +
- - -
+   - - {t}Move up{/t} + + {image path='plugins/mail/images/sieve_move_object_up.png' + action="Move_Up_Object_{$ID}" title="{t}Move object up one position{/t}"} - - {t}Move down{/t} - - - {t}Remove element{/t} + {image path='plugins/mail/images/sieve_move_object_down.png' + action="Move_Down_Object_{$ID}" title="{t}Move object down one position{/t}"} + {image path='images/lists/trash.png' action="Remove_Object_{$ID}" + title="{t}Remove object{/t}"}
+ %%OBJECT_CONTENT%% diff --git a/gosa-plugins/mail/personal/mail/sieve/templates/object_test_container.tpl b/gosa-plugins/mail/personal/mail/sieve/templates/object_test_container.tpl index 526118495..97147eb6b 100644 --- a/gosa-plugins/mail/personal/mail/sieve/templates/object_test_container.tpl +++ b/gosa-plugins/mail/personal/mail/sieve/templates/object_test_container.tpl @@ -1,13 +1,14 @@ - +
-
+ + {if $DisplayAdd} - + {image path="plugins/mail/images/sieve_add_test.png" action="Add_Test_Object_{$ID}" + title="{t}Add object{/t}"} {/if} {if $DisplayDel} - + {image path="plugins/mail/images/sieve_del_object.png" action="Remove_Test_Object_{$ID}" + title="{t}Remove object{/t}"} {/if}