mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Bugfix: sieve undefined args[i-1]
This commit is contained in:
parent
e6ea47e75f
commit
882c0bde42
8 changed files with 17 additions and 17 deletions
|
|
@ -59,9 +59,9 @@ export class NotifyCommand extends ActionCommand
|
|||
{
|
||||
this._method.value = args.pop().value; // GrammarQuotedString
|
||||
args.forEach((arg, i) => {
|
||||
if (':options' === args[i-1]) {
|
||||
if (i && ':options' === args[i-1]) {
|
||||
this.options = arg; // GrammarStringList
|
||||
} else if (':' === args[i-1][0]) {
|
||||
} else if (i && ':' === args[i-1][0]) {
|
||||
// :from, :importance, :message
|
||||
this[args[i-1].replace(':','_')].value = arg.value;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue