parent
710fd2f492
commit
138ee065a2
|
@ -120,7 +120,7 @@
|
||||||
|
|
||||||
<md-input-container class="md-block md-flex">
|
<md-input-container class="md-block md-flex">
|
||||||
<md-select ng-model="action.method">
|
<md-select ng-model="action.method">
|
||||||
<md-option ng-value="key" ng-repeat="(key, value) in filterEditor.methodLabels">{{ value }}</md-option>
|
<md-option ng-value="key" ng-repeat="key in filterEditor.methods">{{ filterEditor.methodLabels[key] }}</md-option>
|
||||||
</md-select>
|
</md-select>
|
||||||
</md-input-container>
|
</md-input-container>
|
||||||
|
|
||||||
|
|
|
@ -52,6 +52,17 @@
|
||||||
if (sieveCapabilities.indexOf("imapflags") > -1 || sieveCapabilities.indexOf("imap4flags") > -1)
|
if (sieveCapabilities.indexOf("imapflags") > -1 || sieveCapabilities.indexOf("imap4flags") > -1)
|
||||||
this.methodLabels.addflag = l("Flag the message with");
|
this.methodLabels.addflag = l("Flag the message with");
|
||||||
|
|
||||||
|
this.methods = [
|
||||||
|
"fileinto",
|
||||||
|
"addflag",
|
||||||
|
"stop",
|
||||||
|
"keep",
|
||||||
|
"discard",
|
||||||
|
"redirect",
|
||||||
|
"reject"
|
||||||
|
];
|
||||||
|
this.methods = _.intersection(this.methods, _.keys(this.methodLabels));
|
||||||
|
|
||||||
this.numberOperatorLabels = {
|
this.numberOperatorLabels = {
|
||||||
"under": l("is under"),
|
"under": l("is under"),
|
||||||
"over": l("is over")
|
"over": l("is over")
|
||||||
|
@ -120,7 +131,7 @@
|
||||||
if (!this.filter.actions)
|
if (!this.filter.actions)
|
||||||
this.filter.actions = [];
|
this.filter.actions = [];
|
||||||
|
|
||||||
this.filter.actions.push({ method: 'discard' });
|
this.filter.actions.push({ method: 'fileinto' });
|
||||||
};
|
};
|
||||||
|
|
||||||
this.removeMailFilterAction = function (index) {
|
this.removeMailFilterAction = function (index) {
|
||||||
|
|
Loading…
Reference in New Issue