2010-03-02 20:57:30 +01:00
|
|
|
<?xml version="1.0" standalone="yes"?>
|
2015-07-04 03:40:37 +02:00
|
|
|
<!DOCTYPE container>
|
|
|
|
<container
|
|
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
|
|
xmlns:var="http://www.skyrix.com/od/binding"
|
|
|
|
xmlns:const="http://www.skyrix.com/od/constant"
|
|
|
|
xmlns:label="OGo:label"
|
|
|
|
xmlns:rsrc="OGo:url"
|
|
|
|
xmlns:uix="OGo:uix"><var:string var:value="doctype" const:escapeHTML="NO" />
|
2015-08-18 21:32:44 +02:00
|
|
|
<md-dialog flex="50" flex-sm="100">
|
2015-08-14 08:31:27 +02:00
|
|
|
<form id="mainForm" var:href="ownPath">
|
2015-04-27 19:33:26 +02:00
|
|
|
<md-dialog-content>
|
|
|
|
<script type="text/javascript">
|
|
|
|
var filterId = '<var:string value="filterId"/>';
|
|
|
|
var sieveFolderEncoding = '<var:string value="sieveFolderEncoding"/>';
|
|
|
|
var mailTags = <var:string value="labels" const:escapeHTML="NO"/>;
|
|
|
|
</script>
|
2015-08-14 08:31:27 +02:00
|
|
|
<div id="filterNameContainer" class="container">
|
|
|
|
<md-input-container>
|
|
|
|
<label><var:string label:value="Filter name:"/></label>
|
|
|
|
<input const:name="filterName" type="text" ng-model="filter.name" required="required"/>
|
|
|
|
</md-input-container>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="sg-padded"><var:entity const:name="nbsp"/></div>
|
|
|
|
|
|
|
|
<div layout="row" layout-align="start center">
|
|
|
|
<div><var:string label:value="For incoming messages that"/></div>
|
|
|
|
<md-input-container class="md-flex">
|
|
|
|
<md-select ng-model="filter.match" required="required">
|
2015-04-27 19:33:26 +02:00
|
|
|
<md-option const:value="all">
|
|
|
|
<var:string label:value="match all of the following rules:"/>
|
|
|
|
</md-option>
|
|
|
|
<md-option const:value="any">
|
|
|
|
<var:string label:value="match any of the following rules:"/>
|
|
|
|
</md-option>
|
|
|
|
<md-option const:value="allmessages">
|
|
|
|
<var:string label:value="match all messages"/>
|
|
|
|
</md-option>
|
|
|
|
</md-select>
|
2015-08-14 08:31:27 +02:00
|
|
|
</md-input-container>
|
|
|
|
</div>
|
2015-04-27 19:33:26 +02:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<!-- CONDITIONS -->
|
|
|
|
<div layout="column">
|
|
|
|
<div id="filterRules"><!-- empty -->
|
|
|
|
<md-list>
|
|
|
|
<md-list-item ng-repeat="rule in filter.rules">
|
|
|
|
<md-input-container flex="25">
|
2015-04-27 19:33:26 +02:00
|
|
|
<md-select ng-model="rule.field">
|
|
|
|
<md-option ng-value="key" ng-repeat="(key, value) in fieldLabels">{{ value }}</md-option>
|
|
|
|
</md-select>
|
2015-08-14 08:31:27 +02:00
|
|
|
</md-input-container>
|
2015-04-27 19:33:26 +02:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<md-input-container flex="25" ng-show="rule.field == 'header'">
|
|
|
|
<input type="text" ng-model="rule.custom_header"/>
|
|
|
|
</md-input-container>
|
2015-04-27 19:33:26 +02:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<md-input-container flex="25" ng-show="rule.field == 'size'">
|
|
|
|
<md-select ng-model="rule.operator">
|
2015-04-27 19:33:26 +02:00
|
|
|
<md-option ng-value="key" ng-repeat="(key, value) in numberOperatorLabels">
|
|
|
|
{{ value }}
|
|
|
|
</md-option>
|
|
|
|
</md-select>
|
2015-08-14 08:31:27 +02:00
|
|
|
</md-input-container>
|
2015-04-27 19:33:26 +02:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<md-input-container flex="25" ng-show="rule.field != 'size'">
|
|
|
|
<md-select ng-model="rule.operator">
|
2015-04-27 19:33:26 +02:00
|
|
|
<md-option ng-value="key" ng-repeat="(key, value) in textOperatorLabels">
|
|
|
|
{{ value }}
|
|
|
|
</md-option>
|
|
|
|
</md-select>
|
2015-08-14 08:31:27 +02:00
|
|
|
</md-input-container>
|
2015-04-27 19:33:26 +02:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<md-input-container class="md-flex">
|
2015-04-27 19:33:26 +02:00
|
|
|
<input type="text" ng-model="rule.value"/>
|
2015-08-14 08:31:27 +02:00
|
|
|
</md-input-container>
|
2015-04-27 19:33:26 +02:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<md-button class="sg-icon-button" type="button"
|
|
|
|
ng-click="removeMailFilterRule($index)">
|
|
|
|
<md-icon>remove_circle</md-icon>
|
|
|
|
</md-button>
|
2015-04-27 19:33:26 +02:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
</md-list-item>
|
|
|
|
</md-list>
|
|
|
|
</div>
|
2015-04-27 19:33:26 +02:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<div layout="row" layout-align="end center">
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-button class="sg-icon-button" type="button"
|
|
|
|
ng-click="addMailFilterRule($event)">
|
2015-08-14 08:31:27 +02:00
|
|
|
<md-icon>add_circle</md-icon>
|
2015-04-27 19:33:26 +02:00
|
|
|
</md-button>
|
|
|
|
</div>
|
2015-08-14 08:31:27 +02:00
|
|
|
</div>
|
2015-04-27 19:33:26 +02:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<!-- ACTIONS -->
|
|
|
|
<div layout="column">
|
|
|
|
<var:string label:value="Perform these actions:"/>
|
|
|
|
<div id="filterActions"><!-- empty --></div>
|
2015-04-27 19:33:26 +02:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<md-list>
|
|
|
|
<md-list-item layout="row" layout-align="space-between center"
|
|
|
|
ng-repeat="action in filter.actions">
|
|
|
|
<md-input-container>
|
2015-02-25 23:21:07 +01:00
|
|
|
<md-select ng-model="action.method">
|
|
|
|
<md-option ng-value="key" ng-repeat="(key, value) in methodLabels">{{ value }}</md-option>
|
|
|
|
</md-select>
|
2015-08-14 08:31:27 +02:00
|
|
|
</md-input-container>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<!-- FORWARD MESSAGE TO -->
|
|
|
|
<md-input-container ng-show="action.method == 'redirect'" >
|
|
|
|
<input type="text" ng-model="action.argument"/>
|
|
|
|
</md-input-container>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<!-- DISCARD -->
|
|
|
|
<!-- nada -->
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<!-- KEEP -->
|
|
|
|
<!-- nada -->
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<!-- SEND REJECT MESSAGE -->
|
|
|
|
<md-input-container ng-show="action.method == 'reject'">
|
|
|
|
<input type="text" ng-model="action.argument"/>
|
|
|
|
</md-input-container>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<!-- FILE INTO -->
|
|
|
|
<md-input-container ng-show="action.method == 'fileinto'" >
|
|
|
|
<md-select ng-model="action.argument">
|
2015-02-25 23:21:07 +01:00
|
|
|
<md-option ng-value="item.path" ng-repeat="item in mailboxes">
|
|
|
|
{{ item.name }}
|
|
|
|
</md-option>
|
|
|
|
</md-select>
|
2015-08-14 08:31:27 +02:00
|
|
|
</md-input-container>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<!-- FLAG WITH -->
|
|
|
|
<md-input-container ng-show="action.method == 'addflag'" >
|
|
|
|
<md-select ng-model="action.argument" >
|
2015-08-18 17:31:42 +02:00
|
|
|
<md-option value="seen"><var:string label:value="Seen"/></md-option>
|
|
|
|
<md-option value="deleted"><var:string label:value="Deleted"/></md-option>
|
|
|
|
<md-option value="answered"><var:string label:value="Answered"/></md-option>
|
|
|
|
<md-option value="flagged"><var:string label:value="Flagged"/></md-option>
|
|
|
|
<md-option value="junk"><var:string label:value="Junk"/></md-option>
|
|
|
|
<md-option value="not_junk"><var:string label:value="Not Junk"/></md-option>
|
2015-02-25 23:21:07 +01:00
|
|
|
<md-option ng-value="key" ng-repeat="(key, value) in labels">{{ value[0] }}</md-option>
|
|
|
|
</md-select>
|
2015-08-14 08:31:27 +02:00
|
|
|
</md-input-container>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<!-- STOP -->
|
|
|
|
<!-- nada -->
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<md-button class="sg-icon-button" type="button"
|
|
|
|
ng-click="removeMailFilterAction($index)">
|
|
|
|
<md-icon>remove_circle</md-icon>
|
|
|
|
</md-button>
|
2015-04-27 19:33:26 +02:00
|
|
|
|
2015-04-09 20:46:54 +02:00
|
|
|
</md-list-item>
|
2015-08-14 08:31:27 +02:00
|
|
|
</md-list>
|
2015-02-25 23:21:07 +01:00
|
|
|
|
2015-08-14 08:31:27 +02:00
|
|
|
<div layout="row" layout-align="end center">
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-button class="sg-icon-button" type="button"
|
|
|
|
ng-click="addMailFilterAction($event)">
|
2015-08-14 08:31:27 +02:00
|
|
|
<md-icon>add_circle</md-icon>
|
2015-04-27 19:33:26 +02:00
|
|
|
</md-button>
|
|
|
|
</div>
|
2015-02-25 23:21:07 +01:00
|
|
|
</div>
|
2015-08-14 08:31:27 +02:00
|
|
|
</md-dialog-content>
|
|
|
|
<div class="md-actions">
|
|
|
|
<md-button type="button" ng-click="cancel()"><var:string label:value="Cancel"/></md-button>
|
|
|
|
<md-button type="button" ng-click="save()"><var:string label:value="Save"/></md-button>
|
|
|
|
</div>
|
|
|
|
</form>
|
2015-04-27 19:33:26 +02:00
|
|
|
</md-dialog>
|
2015-07-04 03:40:37 +02:00
|
|
|
</container>
|