mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-08 15:57:37 +08:00
33 lines
493 B
JavaScript
33 lines
493 B
JavaScript
|
/**
|
||
|
* 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();
|
||
|
}
|
||
|
}
|