fix syntax error

fork
Brian White 12 years ago
parent f36958f4cc
commit 2d7d0a7207

@ -82,7 +82,7 @@ exports.parseFetchBodies = function(str, literals) {
if (Array.isArray(result[i])) { if (Array.isArray(result[i])) {
if (result[i].length === 0) if (result[i].length === 0)
result[i].push(''); 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 // 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 // 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 // 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. // values in any order, I am disabling partial fetches entirely.
// BODY[TEXT]<0.32> // BODY[TEXT]<0.32>
/*result[i][0] += '<'; result[i][0] += '<';
result[i][0] += result[i][1]; // starting octet result[i][0] += result[i][1]; // starting octet
result[i][0] += '.'; result[i][0] += '.';
if (typeof result[i + 1] === 'number') if (typeof result[i + 1] === 'number')
result[i][0] += result[i + 1]; result[i][0] += result[i + 1];
else if (typeof else if (typeof
result[i][0] += '>';*/ result[i][0] += '>';
} else if (result[i].length > 1) { }*/ else if (result[i].length > 1) {
// HEADER.FIELDS (foo) // HEADER.FIELDS (foo)
result[i][0] += ' ('; result[i][0] += ' (';
result[i][0] += result[i].slice(1).join(' '); result[i][0] += result[i].slice(1).join(' ');

Loading…
Cancel
Save