From 450ff30cad8a9dd1287b914ff0867400886d7b24 Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Wed, 3 Oct 2018 11:23:11 +0300 Subject: [PATCH] updated profile generation --- lib/api/asps.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/api/asps.js b/lib/api/asps.js index c64a3e9d..f09c34df 100644 --- a/lib/api/asps.js +++ b/lib/api/asps.js @@ -332,7 +332,8 @@ module.exports = (db, server, userHandler) => { let accountPort; let accountSecure; - if (scopes.includes('imap')) { + if (scopes.includes('*') || scopes.includes('imap')) { + // prefer IMAP accountType = 'EmailTypeIMAP'; accountHost = config.imap.setup.hostname; accountPort = config.imap.setup.port || config.imap.port;