to and from are arrays

This commit is contained in:
Girish Ramakrishnan 2016-06-23 15:30:30 -05:00
parent 7f033cd70b
commit 485b07f797

View File

@ -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;
}