mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Added RFC5231 check
This commit is contained in:
parent
eb369ca122
commit
3ce123b536
1 changed files with 1 additions and 0 deletions
|
|
@ -72,6 +72,7 @@ Sieve.parseScript = (script, name = 'script.sieve') => {
|
|||
command.match_type = arg;
|
||||
} else if (':value' === prev_arg || ':count' === prev_arg) {
|
||||
// Sieve relational [RFC5231] match types
|
||||
/^(gt|ge|lt|le|eq|ne)$/.test(arg.value) || error('Invalid relational match-type ' + arg);
|
||||
command.match_type = prev_arg + ' ' + arg;
|
||||
--args.length;
|
||||
// requires.push('relational');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue