Don't reset indata.temp before in data.expect is zero.

fork
Chotiwat Chawannakul 12 years ago
parent b1a45c7ea6
commit 53e254c491

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

Loading…
Cancel
Save