Added Sieve parser code in master

This commit is contained in:
the-djmaze 2022-03-09 12:33:31 +01:00
parent e90e8a55ce
commit f4cd25f8ad
21 changed files with 2126 additions and 8 deletions

View file

@ -12,6 +12,8 @@ import { AbstractViewPopup } from 'Knoin/AbstractViews';
import { FilterPopupView } from 'View/Popup/Filter';
//import { parseScript } from 'Sieve/Parser';
export class SieveScriptPopupView extends AbstractViewPopup {
constructor() {
super('SieveScript');
@ -122,6 +124,13 @@ export class SieveScriptPopupView extends AbstractViewPopup {
this.rawActive(raw);
this.allowToggle(!raw);
this.saveError(false);
/*
// TODO: Sieve GUI
let tree = parseScript(oScript.body(), oScript.name());
console.dir(tree);
console.log(tree.join('\r\n'));
*/
}
afterShow() {