Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// only one connection will see it. Accordingly, there's no need to
// trouble consumers with it.
fetchData.flags = result[i+1].filter(isNotEmptyOrRecent);
// simplify comparison for downstream logic by sorting.
fetchData.flags.sort();
}
// MODSEQ (####)
else if (result[i] === 'MODSEQ')
fetchData.modseq = result[i+1].slice(1, -1);
else if (result[i] === 'BODYSTRUCTURE')
fetchData.structure = parseBodyStructure(result[i+1]);
else if (typeof result[i] === 'string') // simple extensions
fetchData[result[i].toLowerCase()] = result[i+1];
else if (Array.isArray(result[i]) && typeof result[i][0] === 'string' &&
result[i][0].indexOf('HEADER') === 0 && literalData) {
var mparser = new mailparser.MailParser();
mparser._remainder = literalData;
// invoke mailparser's logic in a fully synchronous fashion
process.immediate = true;
mparser._process(true);
process.immediate = false;
/*
var headers = literalData.split(/\r\n(?=[\w])/), header;
fetchData.headers = {};
for (var j=0,len2=headers.length; j
// only one connection will see it. Accordingly, there's no need to
// trouble consumers with it.
fetchData.flags = result[i+1].filter(isNotEmptyOrRecent);
// simplify comparison for downstream logic by sorting.
fetchData.flags.sort();
}
// MODSEQ (####)
else if (result[i] === 'MODSEQ')
fetchData.modseq = result[i+1].slice(1, -1);
else if (result[i] === 'BODYSTRUCTURE')
fetchData.structure = parseBodyStructure(result[i+1]);
else if (typeof result[i] === 'string') // simple extensions
fetchData[result[i].toLowerCase()] = result[i+1];
else if (Array.isArray(result[i]) && typeof result[i][0] === 'string' &&
result[i][0].indexOf('HEADER') === 0 && literalData) {
var mparser = new mailparser.MailParser();
mparser._remainder = literalData;
// invoke mailparser's logic in a fully synchronous fashion
process.immediate = true;
mparser._process(true);
process.immediate = false;
/*
var headers = literalData.split(/\r\n(?=[\w])/), header;
fetchData.headers = {};
for (var j=0,len2=headers.length; j
// only one connection will see it. Accordingly, there's no need to
// trouble consumers with it.
fetchData.flags = result[i+1].filter(isNotEmptyOrRecent);
// simplify comparison for downstream logic by sorting.
fetchData.flags.sort();
}
// MODSEQ (####)
else if (result[i] === 'MODSEQ')
fetchData.modseq = result[i+1].slice(1, -1);
else if (result[i] === 'BODYSTRUCTURE')
fetchData.structure = parseBodyStructure(result[i+1]);
else if (typeof result[i] === 'string') // simple extensions
fetchData[result[i].toLowerCase()] = result[i+1];
else if (Array.isArray(result[i]) && typeof result[i][0] === 'string' &&
result[i][0].indexOf('HEADER') === 0 && literalData) {
var mparser = new mailparser.MailParser();
mparser._remainder = literalData;
// invoke mailparser's logic in a fully synchronous fashion
process.immediate = true;
mparser._process(true);
process.immediate = false;
/*
var headers = literalData.split(/\r\n(?=[\w])/), header;
fetchData.headers = {};
for (var j=0,len2=headers.length; j