lib/services/messageService.js
Function getMessages
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getMessages(imapConnection, boxName, ids, seqs, options, callback) {
logger.info('Getting messages by seqs#' + seqs + ' or ids#' + ids + ' in box#' + boxName + ' with options ' + JSON.stringify(options));
if (ids && seqs || (!ids && !seqs)) {
callback(new Error('Either ids or seqs must be defined'), null);
return;
Function getMessages
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function getMessages(imapConnection, boxName, ids, seqs, options, callback) {