mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-25 18:19:22 +03:00
Get the Sieve GUI partially working
This commit is contained in:
parent
55c5910590
commit
7e45ffab74
11 changed files with 33 additions and 8 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { AbstractModel } from 'Sieve/Model/Abstract';
|
||||
import { FilterModel } from 'Sieve/Model/Filter';
|
||||
import { koArrayWithDestroy } from 'Sieve/Utils';
|
||||
import { parseScript } from 'Sieve/Parser';
|
||||
|
||||
const SIEVE_FILE_NAME = 'rainloop.user';
|
||||
|
||||
|
|
@ -299,6 +300,10 @@ export class SieveScriptModel extends AbstractModel
|
|||
return SIEVE_FILE_NAME === this.name();
|
||||
}
|
||||
|
||||
parse() {
|
||||
return parseScript(this.body(), this.name());
|
||||
}
|
||||
|
||||
/**
|
||||
* @static
|
||||
* @param {FetchJsonScript} json
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue