Activate more Sieve extensions and use parseScript when saving script

This commit is contained in:
the-djmaze 2022-03-13 20:22:00 +01:00
parent 58f5e90f8f
commit 40adf992ed
9 changed files with 39 additions and 38 deletions

View file

@ -51,9 +51,10 @@ import {
TrueCommand
} from 'Sieve/Tests';
import {
VacationCommand
} from 'Sieve/Extensions/rfc5230';
import { BodyCommand } from 'Sieve/Extensions/rfc5173';
import { EnvironmentCommand } from 'Sieve/Extensions/rfc5183';
import { SetCommand, StringCommand } from 'Sieve/Extensions/rfc5229';
import { VacationCommand } from 'Sieve/Extensions/rfc5230';
import {
SetFlagCommand,
@ -62,6 +63,10 @@ import {
HasFlagCommand
} from 'Sieve/Extensions/rfc5232';
import { SpamTestCommand, VirusTestCommand } from 'Sieve/Extensions/rfc5235';
import { DateCommand, CurrentDateCommand } from 'Sieve/Extensions/rfc5260';
import { AddHeaderCommand, DeleteHeaderCommand } from 'Sieve/Extensions/rfc5293';
import {
ErejectCommand,
RejectCommand
@ -97,6 +102,13 @@ const
not: NotCommand,
size: SizeCommand,
true: TrueCommand,
// rfc5173
body: BodyCommand,
// rfc5183
environment: EnvironmentCommand,
// rfc5229
set: SetCommand,
string: StringCommand,
// rfc5230
vacation: VacationCommand,
// rfc5232
@ -104,6 +116,15 @@ const
addflag: AddFlagCommand,
removeflag: RemoveFlagCommand,
hasflag: HasFlagCommand,
// rfc5235
spamtest: SpamTestCommand,
virustest: VirusTestCommand,
// rfc5260
date: DateCommand,
currentdate: CurrentDateCommand,
// rfc5293
AddHeaderCommand,
DeleteHeaderCommand,
// rfc5429
ereject: ErejectCommand,
reject: RejectCommand,