1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-23 01:12:19 -05:00

check subject during sync

This commit is contained in:
Tankred Hase 2013-11-05 18:48:58 +01:00
parent c0203bb1f6
commit 5c7eb7052d

View File

@ -331,7 +331,7 @@ define(function(require) {
// find encrypted messages by subject
emails.forEach(function(i) {
if (i.subject.indexOf(str.subjectPrefix) !== -1) {
if (typeof i.subject === 'string' && i.subject.indexOf(str.subjectPrefix) !== -1) {
headers.push(i);
}
});