mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
Fix Sieve QuotedString handling
This commit is contained in:
parent
257d9201f6
commit
61c2eefec1
13 changed files with 185 additions and 104 deletions
|
|
@ -42,28 +42,34 @@ export class MetadataTest extends TestCommand
|
|||
constructor()
|
||||
{
|
||||
super();
|
||||
this.mailbox = new GrammarQuotedString;
|
||||
this.annotation_name = new GrammarQuotedString;
|
||||
this._mailbox = new GrammarQuotedString;
|
||||
this._annotation_name = new GrammarQuotedString;
|
||||
this.key_list = new GrammarStringList;
|
||||
}
|
||||
|
||||
get require() { return 'mboxmetadata'; }
|
||||
|
||||
get mailbox() { return this._mailbox.value; }
|
||||
set mailbox(v) { this._mailbox.value = v; }
|
||||
|
||||
get annotation_name() { return this._annotation_name.value; }
|
||||
set annotation_name(v) { this._annotation_name.value = v; }
|
||||
|
||||
toString()
|
||||
{
|
||||
return 'metadata '
|
||||
+ ' ' + this.match_type
|
||||
+ (this.comparator ? ' :comparator ' + this.comparator : '')
|
||||
+ ' ' + this.mailbox
|
||||
+ ' ' + this.annotation_name
|
||||
+ ' ' + this._mailbox
|
||||
+ ' ' + this._annotation_name
|
||||
+ ' ' + this.key_list;
|
||||
}
|
||||
|
||||
pushArguments(args)
|
||||
{
|
||||
this.key_list = args.pop();
|
||||
this.annotation_name = args.pop();
|
||||
this.mailbox = args.pop();
|
||||
this._annotation_name = args.pop();
|
||||
this._mailbox = args.pop();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -75,23 +81,26 @@ export class MetadataExistsTest extends TestCommand
|
|||
constructor()
|
||||
{
|
||||
super();
|
||||
this.mailbox = new GrammarQuotedString;
|
||||
this._mailbox = new GrammarQuotedString;
|
||||
this.annotation_names = new GrammarStringList;
|
||||
}
|
||||
|
||||
get require() { return 'mboxmetadata'; }
|
||||
|
||||
get mailbox() { return this._mailbox.value; }
|
||||
set mailbox(v) { this._mailbox.value = v; }
|
||||
|
||||
toString()
|
||||
{
|
||||
return 'metadataexists '
|
||||
+ ' ' + this.mailbox
|
||||
+ ' ' + this._mailbox
|
||||
+ ' ' + this.annotation_names;
|
||||
}
|
||||
|
||||
pushArguments(args)
|
||||
{
|
||||
this.annotation_names = args.pop();
|
||||
this.mailbox = args.pop();
|
||||
this._mailbox = args.pop();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -103,25 +112,28 @@ export class ServerMetadataTest extends TestCommand
|
|||
constructor()
|
||||
{
|
||||
super();
|
||||
this.annotation_name = new GrammarQuotedString;
|
||||
this._annotation_name = new GrammarQuotedString;
|
||||
this.key_list = new GrammarStringList;
|
||||
}
|
||||
|
||||
get require() { return 'servermetadata'; }
|
||||
|
||||
get annotation_name() { return this._annotation_name.value; }
|
||||
set annotation_name(v) { this._annotation_name.value = v; }
|
||||
|
||||
toString()
|
||||
{
|
||||
return 'servermetadata '
|
||||
+ ' ' + this.match_type
|
||||
+ (this.comparator ? ' :comparator ' + this.comparator : '')
|
||||
+ ' ' + this.annotation_name
|
||||
+ ' ' + this._annotation_name
|
||||
+ ' ' + this.key_list;
|
||||
}
|
||||
|
||||
pushArguments(args)
|
||||
{
|
||||
this.key_list = args.pop();
|
||||
this.annotation_name = args.pop();
|
||||
this._annotation_name = args.pop();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue