|
|
|
@ -229,7 +229,6 @@ ImapConnection.prototype.connect = function(loginCb) {
|
|
|
|
|
&& /^BODY\[/i.test(litType)) {
|
|
|
|
|
var msg = new ImapMessage();
|
|
|
|
|
msg.seqno = parseInt(m[1], 10);
|
|
|
|
|
msg.length = indata.expect;
|
|
|
|
|
requests[0]._msg = msg;
|
|
|
|
|
requests[0]._fetcher.emit('message', msg);
|
|
|
|
|
indata.streaming = true;
|
|
|
|
@ -287,7 +286,6 @@ ImapConnection.prototype.connect = function(loginCb) {
|
|
|
|
|
// a body was given as a non-literal string
|
|
|
|
|
var data = new Buffer(msg.body, 'binary');
|
|
|
|
|
delete msg.body;
|
|
|
|
|
msg.length = data.length;
|
|
|
|
|
requests[0]._fetcher.emit('message', msg);
|
|
|
|
|
msg.emit('data', data);
|
|
|
|
|
msg.emit('end');
|
|
|
|
@ -295,7 +293,6 @@ ImapConnection.prototype.connect = function(loginCb) {
|
|
|
|
|
// non-body fetch
|
|
|
|
|
if (Object.keys(msg).indexOf('body') > -1)
|
|
|
|
|
delete msg.body;
|
|
|
|
|
msg.length = 0;
|
|
|
|
|
requests[0]._fetcher.emit('message', msg);
|
|
|
|
|
msg.emit('end');
|
|
|
|
|
}
|
|
|
|
|