Cleanup and improved handling of Sieve scripts

This commit is contained in:
the-djmaze
2022-08-23 10:52:23 +02:00
parent 61908dd0c0
commit 58cd2fcacb
14 changed files with 28 additions and 802 deletions

View File

@@ -294,8 +294,9 @@ export class SieveScriptModel extends AbstractModel
return {
name: this.name(),
active: this.active() ? 1 : 0,
body: this.body(),
filters: this.filters.map(item => item.toJson())
body: this.body()
// body: this.allowFilters() ? this.body() : this.filtersToRaw()
// filters: this.filters.map(item => item.toJson())
};
}