diff --git a/lib/imap.parsers.js b/lib/imap.parsers.js index 695e876..c86d764 100644 --- a/lib/imap.parsers.js +++ b/lib/imap.parsers.js @@ -65,7 +65,7 @@ exports.parseFetch = function(str, literals, fetchData) { }; exports.parseBodyStructure = function(cur, literals, prefix, partID) { - var ret = []; + var ret = [], i, len; if (prefix === undefined) { var result = (Array.isArray(cur) ? cur : exports.parseExpr(cur, literals)); if (result.length) @@ -83,7 +83,7 @@ exports.parseBodyStructure = function(cur, literals, prefix, partID) { if (partLen > next) { if (Array.isArray(cur[next])) { part.params = {}; - for (var i=0,len=cur[next].length; i next && Array.isArray(cur[next])) { part.envelope = {}; - for (var i=0,len=cur[next].length; i