mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Draf of Sieve parser/lexer for a new Sieve GUI
This commit is contained in:
parent
e023a5d6ab
commit
b2e77f3f67
13 changed files with 1353 additions and 1 deletions
28
dev/Sieve/Extensions/Body.js
Normal file
28
dev/Sieve/Extensions/Body.js
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
/**
|
||||
* https://tools.ietf.org/html/rfc5173
|
||||
*/
|
||||
|
||||
(Sieve => {
|
||||
|
||||
Sieve.Extensions.Body = class
|
||||
{
|
||||
constructor()
|
||||
{
|
||||
this.comparator = 'i;ascii-casemap',
|
||||
this.match_type = ':is',
|
||||
this.body_transform = ''; // :raw, :content <string-list>, :text
|
||||
this.key_list = new Sieve.Grammar.StringList;
|
||||
}
|
||||
|
||||
toString()
|
||||
{
|
||||
return 'body'
|
||||
// + ' ' + this.comparator
|
||||
+ ' ' + this.match_type
|
||||
+ ' ' + this.body_transform
|
||||
+ ' ' + this.key_list;
|
||||
}
|
||||
};
|
||||
|
||||
})(this.Sieve);
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue