diff --git a/lib/imap.js b/lib/imap.js index 8555e01..0835dae 100644 --- a/lib/imap.js +++ b/lib/imap.js @@ -335,7 +335,7 @@ ImapConnection.prototype.connect = function(loginCb) { parsers.parseFetch(m.info, indata.literals, details); details.seqno = parseInt(m.num, 10); - if (typeof details['x-gm-labels'] !== undefined) { + if (details['x-gm-labels'] !== undefined) { var labels = details['x-gm-labels']; for (var i=0, len=labels.length; i