diff --git a/lib/imap.parsers.js b/lib/imap.parsers.js index 32d8d9c..85d51e5 100644 --- a/lib/imap.parsers.js +++ b/lib/imap.parsers.js @@ -82,7 +82,7 @@ exports.parseFetchBodies = function(str, literals) { if (Array.isArray(result[i])) { if (result[i].length === 0) result[i].push(''); - //else if (result[i].length === 2 && typeof result[i][1] === 'number') { + /*else if (result[i].length === 2 && typeof result[i][1] === 'number') { // OK, so ordinarily this is where we'd transform a partial fetch // key so that it matches up with a key in our request's fetchers object // but since IMAP sucks, we have no way to match up a partial fetch @@ -96,14 +96,14 @@ exports.parseFetchBodies = function(str, literals) { // values in any order, I am disabling partial fetches entirely. // BODY[TEXT]<0.32> - /*result[i][0] += '<'; + result[i][0] += '<'; result[i][0] += result[i][1]; // starting octet result[i][0] += '.'; if (typeof result[i + 1] === 'number') result[i][0] += result[i + 1]; else if (typeof - result[i][0] += '>';*/ - } else if (result[i].length > 1) { + result[i][0] += '>'; + }*/ else if (result[i].length > 1) { // HEADER.FIELDS (foo) result[i][0] += ' ('; result[i][0] += result[i].slice(1).join(' ');