to and from are arrays
This commit is contained in:
parent
7f033cd70b
commit
485b07f797
@ -133,8 +133,8 @@ function searchMessage(message, needle) {
|
||||
|
||||
if (needle.subject && message.subject[0].match(needle.subject) === null) return false;
|
||||
if (needle.body && message.body.match(needle.body) === null) return false;
|
||||
if (needle.to && message.to.match(needle.to) === null) return false;
|
||||
if (needle.from && message.from.match(needle.from) === null) return false;
|
||||
if (needle.to && message.to[0].match(needle.to) === null) return false;
|
||||
if (needle.from && message.from[0].match(needle.from) === null) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user