Comparing version 0.7.4 to 0.7.5
@@ -231,6 +231,6 @@ var assert = require('assert'), | ||
for (var i=0, len=fetches.length; i<len; ++i) { | ||
if (fetches[i]._msg._ended) | ||
continue; | ||
fetches[i]._msg.emit('end'); | ||
fetches[i]._msg._ended = true; | ||
if (fetches[i]._msg) { | ||
fetches[i]._msg.emit('end'); | ||
fetches[i]._msg = undefined; | ||
} | ||
} | ||
@@ -932,3 +932,2 @@ } | ||
parse = true, headers, key, stream, | ||
opts = { markSeen: false, struct: true, size: false }, | ||
fetchers = {}; | ||
@@ -939,9 +938,5 @@ | ||
what = options; | ||
} else { | ||
if (options.markSeen) | ||
opts.markSeen = true; | ||
if (options.size) | ||
opts.size = true; | ||
options = {}; | ||
} | ||
prefix = (opts.markSeen ? ' BODY.PEEK[' : ' BODY['); | ||
prefix = (options.markSeen ? ' BODY.PEEK[' : ' BODY['); | ||
if (!Array.isArray(what)) | ||
@@ -948,0 +943,0 @@ what = [what]; |
{ "name": "imap", | ||
"version": "0.7.4", | ||
"version": "0.7.5", | ||
"author": "Brian White <mscdex@mscdex.net>", | ||
@@ -4,0 +4,0 @@ "description": "An IMAP module for node.js that makes communicating with IMAP servers easy", |
@@ -557,3 +557,3 @@ Description | ||
* **struct** - < _boolean_ > - Fetch the message structure. **Default:** true | ||
* **struct** - < _boolean_ > - Fetch the message structure. **Default:** false | ||
@@ -560,0 +560,0 @@ * **size** - < _boolean_ > - Fetch the RFC822 size. **Default:** false |
318694
6229