Added Sieve extension rfc6134 partial

This commit is contained in:
the-djmaze 2022-03-16 14:21:23 +01:00
parent 63de537f8f
commit e4bd24b4e8
13 changed files with 76 additions and 31 deletions

View file

@ -213,6 +213,10 @@ export const parseScript = (script, name = 'script.sieve') => {
pushArg = arg => {
command || error('Argument not part of command');
let prev_arg = args[args.length-1];
/*
// https://datatracker.ietf.org/doc/html/rfc6134#section-2.3
if (':is' === arg || ':contains' === arg || ':matches' === arg || (capa.includes('extlists') && ':list')) {
*/
if (':is' === arg || ':contains' === arg || ':matches' === arg) {
command.match_type = arg;
} else if (':value' === prev_arg || ':count' === prev_arg) {