mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Activate more Sieve extensions and use parseScript when saving script
This commit is contained in:
parent
58f5e90f8f
commit
40adf992ed
9 changed files with 39 additions and 38 deletions
|
|
@ -43,5 +43,3 @@ export class BodyCommand extends GrammarTest
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
//Sieve.Commands.body = BodyCommand;
|
||||
|
|
|
|||
|
|
@ -34,5 +34,3 @@ export class EnvironmentCommand extends GrammarTest
|
|||
this.key_list = args[args.length-1];
|
||||
}
|
||||
}
|
||||
|
||||
//Sieve.Commands.environment = EnvironmentCommand;
|
||||
|
|
|
|||
|
|
@ -69,10 +69,3 @@ export class StringCommand extends GrammarTest
|
|||
this.key_list = args[args.length-1];
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Object.assign(Sieve.Commands, {
|
||||
set: SetCommand,
|
||||
string: StringCommand
|
||||
});
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -68,10 +68,3 @@ export class VirusTestCommand extends GrammarTest
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Object.assign(Sieve.Commands, {
|
||||
spamtest: SpamTestCommand,
|
||||
virustest: VirusTestCommand
|
||||
});
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ export class CurrentDateCommand extends GrammarTest
|
|||
{
|
||||
constructor()
|
||||
{
|
||||
super('date');
|
||||
super();
|
||||
this.zone = new GrammarQuotedString;
|
||||
this.date_part = new GrammarQuotedString;
|
||||
this.key_list = new GrammarStringList;
|
||||
|
|
@ -76,7 +76,7 @@ export class CurrentDateCommand extends GrammarTest
|
|||
|
||||
toString()
|
||||
{
|
||||
return 'date'
|
||||
return 'currentdate'
|
||||
+ (this.zone.length ? ' :zone ' + this.zone : '')
|
||||
+ (this.comparator ? ' :comparator ' + this.comparator : '')
|
||||
+ ' ' + this.match_type
|
||||
|
|
@ -98,9 +98,3 @@ export class CurrentDateCommand extends GrammarTest
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Object.assign(Sieve.Commands, {
|
||||
date: DateTestCommand,
|
||||
currentdate: CurrentDateCommand
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -83,9 +83,3 @@ export class DeleteHeaderCommand extends GrammarCommand
|
|||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
Object.assign(Sieve.Commands, {
|
||||
addheader: AddHeaderCommand,
|
||||
deleteheader: DeleteHeaderCommand
|
||||
});
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue