| | |
| | | <roundcube:include file="/includes/links.html" /> |
| | | <link rel="stylesheet" type="text/css" href="/this/managesieve.css" /> |
| | | </head> |
| | | <body class="iframe"> |
| | | <body class="iframe<roundcube:exp expression="env:task != 'mail' ? '' : ' mail'" />"> |
| | | |
| | | <script type="text/javascript"> |
| | | |
| | | function header_select(id) |
| | | { |
| | | var obj = document.getElementById('header'+id); |
| | | |
| | | if (obj.value == 'size') |
| | | { |
| | | document.getElementById('rule_size' + id).style.display = 'inline'; |
| | | document.getElementById('rule_op' + id).style.display = 'none'; |
| | | document.getElementById('rule_target' + id).style.display = 'none'; |
| | | document.getElementById('custom_header' + id).style.display = 'none'; |
| | | } |
| | | else |
| | | { |
| | | if (obj.value != '...') |
| | | document.getElementById('custom_header' + id).style.display = 'none'; |
| | | else |
| | | document.getElementById('custom_header' + id).style.display = 'inline'; |
| | | |
| | | document.getElementById('rule_size' + id).style.display = 'none'; |
| | | document.getElementById('rule_op' + id).style.display = 'inline'; |
| | | rule_op_select(id); |
| | | } |
| | | } |
| | | |
| | | function rule_op_select(id) |
| | | { |
| | | var obj = document.getElementById('rule_op'+id); |
| | | |
| | | if (obj.value == 'exists' || obj.value == 'notexists') |
| | | { |
| | | document.getElementById('rule_target' + id).style.display = 'none'; |
| | | } |
| | | else |
| | | { |
| | | document.getElementById('rule_target' + id).style.display = 'inline'; |
| | | } |
| | | } |
| | | |
| | | function action_type_select(id) |
| | | { |
| | | var obj = document.getElementById('action_type'+id); |
| | | |
| | | if (obj.value == 'fileinto') |
| | | { |
| | | document.getElementById('action_mailbox' + id).style.display = 'inline'; |
| | | document.getElementById('action_target' + id).style.display = 'none'; |
| | | document.getElementById('action_target_area' + id).style.display = 'none'; |
| | | document.getElementById('action_vacation' + id).style.display = 'none'; |
| | | } |
| | | else if (obj.value == 'redirect') |
| | | { |
| | | document.getElementById('action_target' + id).style.display = 'inline'; |
| | | document.getElementById('action_mailbox' + id).style.display = 'none'; |
| | | document.getElementById('action_target_area' + id).style.display = 'none'; |
| | | document.getElementById('action_vacation' + id).style.display = 'none'; |
| | | } |
| | | else if (obj.value.match(/^reject|ereject$/)) |
| | | { |
| | | document.getElementById('action_target_area' + id).style.display = 'inline'; |
| | | document.getElementById('action_vacation' + id).style.display = 'none'; |
| | | document.getElementById('action_target' + id).style.display = 'none'; |
| | | document.getElementById('action_mailbox' + id).style.display = 'none'; |
| | | } |
| | | else if (obj.value == 'vacation') |
| | | { |
| | | document.getElementById('action_vacation' + id).style.display = 'inline'; |
| | | document.getElementById('action_target_area' + id).style.display = 'none'; |
| | | document.getElementById('action_target' + id).style.display = 'none'; |
| | | document.getElementById('action_mailbox' + id).style.display = 'none'; |
| | | } |
| | | else // discard, keep, stop |
| | | { |
| | | document.getElementById('action_target_area' + id).style.display = 'none'; |
| | | document.getElementById('action_vacation' + id).style.display = 'none'; |
| | | document.getElementById('action_target' + id).style.display = 'none'; |
| | | document.getElementById('action_mailbox' + id).style.display = 'none'; |
| | | } |
| | | } |
| | | |
| | | function rule_join_radio(value) |
| | | { |
| | | document.getElementById('rules').style.display = (value=='any' ? 'none' : 'block'); |
| | | } |
| | | </script> |
| | | |
| | | <roundcube:if condition="env:task != 'mail'" /> |
| | | <div id="filter-title" class="boxtitle"><roundcube:label name="managesieve.filterdef" /></div> |
| | | <roundcube:endif /> |
| | | |
| | | <div id="filter-form"> |
| | | <div id="filter-form" class="boxcontent"> |
| | | <roundcube:object name="filterform" /> |
| | | |
| | | <roundcube:if condition="env:task != 'mail'" /> |
| | | <div id="footer"> |
| | | <div class="footerleft"> |
| | | <roundcube:button command="plugin.managesieve-save" type="input" class="button mainaction" label="save" /> |
| | |
| | | <input type="checkbox" id="disabled" name="_disabled" value="1" /> |
| | | </div> |
| | | </div> |
| | | <roundcube:endif /> |
| | | |
| | | </form> |
| | | </div> |
| | | |
| | | |
| | | </body> |
| | | </html> |