2022-03-16 21:21:23 +08:00
|
|
|
/**
|
|
|
|
* https://tools.ietf.org/html/rfc6134
|
|
|
|
*/
|
|
|
|
|
|
|
|
import {
|
|
|
|
GrammarStringList,
|
2022-03-17 16:03:02 +08:00
|
|
|
TestCommand
|
2022-03-16 21:21:23 +08:00
|
|
|
} from 'Sieve/Grammar';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* https://datatracker.ietf.org/doc/html/rfc6134#section-2.7
|
|
|
|
*/
|
2022-03-17 16:03:02 +08:00
|
|
|
export class ValidExtListTest extends TestCommand
|
2022-03-16 21:21:23 +08:00
|
|
|
{
|
|
|
|
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();
|
|
|
|
}
|
|
|
|
}
|