Merge pull request #117 from wavify/fix-indata-temp

Don't reset indata.temp before in data.expect is zero.
fork
Brian White 12 years ago
commit 224823d123

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