snappymail/dev/Sieve/Extensions/rfc6134.js

33 lines
493 B
JavaScript
Raw Permalink Normal View History

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