mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 04:29:21 +03:00
Added Sieve extension rfc6134 partial
This commit is contained in:
parent
63de537f8f
commit
e4bd24b4e8
13 changed files with 76 additions and 31 deletions
32
dev/Sieve/Extensions/rfc6134.js
Normal file
32
dev/Sieve/Extensions/rfc6134.js
Normal 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();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue