mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 21:49:21 +03:00
More Sieve quotedstring handling fixes
This commit is contained in:
parent
e7608821da
commit
f6b53ad497
32 changed files with 235 additions and 158 deletions
|
|
@ -16,18 +16,21 @@ export class IncludeCommand extends ControlCommand
|
|||
this.global = false; // ':personal' / ':global';
|
||||
this.once = false;
|
||||
this.optional = false;
|
||||
this.value = new GrammarQuotedString;
|
||||
this._value = new GrammarQuotedString;
|
||||
}
|
||||
|
||||
get require() { return 'include'; }
|
||||
|
||||
get value() { return this._value.value; }
|
||||
set value(v) { this._value.value = v; }
|
||||
|
||||
toString()
|
||||
{
|
||||
return 'include'
|
||||
+ (this.global ? ' :global' : '')
|
||||
+ (this.once ? ' :once' : '')
|
||||
+ (this.optional ? ' :optional' : '')
|
||||
+ ' ' + this.value + ';';
|
||||
+ ' ' + this._value + ';';
|
||||
}
|
||||
|
||||
pushArguments(args)
|
||||
|
|
@ -36,7 +39,7 @@ export class IncludeCommand extends ControlCommand
|
|||
if (':global' === arg || ':once' === arg || ':optional' === arg) {
|
||||
this[arg.slice(1)] = true;
|
||||
} else if (arg instanceof GrammarQuotedString) {
|
||||
this.value = arg;
|
||||
this._value = arg;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue