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

@ -0,0 +1,32 @@
/**
* https://tools.ietf.org/html/rfc6134
*/
import {
GrammarStringList,
GrammarTest
} from 'Sieve/Grammar';
/**
* https://datatracker.ietf.org/doc/html/rfc6134#section-2.7
*/
export class ValidExtListTest extends GrammarTest
{
constructor()
{
super();
this.ext_list_names = new GrammarStringList;
}
get require() { return 'foreverypart'; }
toString()
{
return 'valid_ext_list ' + this.ext_list_names;
}
pushArguments(args)
{
this.ext_list_names = args.pop();
}
}