diff --git a/lib/imap.js b/lib/imap.js index c877e79..0c9e595 100644 --- a/lib/imap.js +++ b/lib/imap.js @@ -205,9 +205,10 @@ ImapConnection.prototype.connect = function(loginCb) { indata.temp += r.toString('binary'); else indata.temp = r.toString('binary'); - if (indata.expect === 0) + if (indata.expect === 0) { indata.literals.push(indata.temp); - indata.temp = undefined; + indata.temp = undefined; + } } if (b.p >= b.length) return;