src/lib/services/Email.js
Function fetchImap
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fetchImap (mailbox) {
const response = {
'unread': 0,
'flagged': 0
}
Function p
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const p = new Promise((resolve, reject) => {
imap.once('error', (err) => reject(err))
imap.once('ready', () => {
const execFlagSearch = () => {
return openMailbox(mailbox.flagMailboxName)
Function fetchExchange
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fetchExchange (mailbox) {
const exch = new EWSFactory().initInstance(mailbox.credentials)
const response = {
'unread': 0,
'flagged': 0