From 747f2c21229fbc8e4340d6d1d4be6ef7ac8d3fbf Mon Sep 17 00:00:00 2001 From: Brian White Date: Thu, 13 Sep 2012 13:53:46 -0400 Subject: [PATCH] Remove length property as it can be misleading --- lib/imap.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/imap.js b/lib/imap.js index b90cba9..3a3a90a 100644 --- a/lib/imap.js +++ b/lib/imap.js @@ -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'); }