updated profile generation

This commit is contained in:
Andris Reinman 2018-10-03 11:23:11 +03:00
parent 636d0585ae
commit 450ff30cad

View file

@ -332,7 +332,8 @@ module.exports = (db, server, userHandler) => {
let accountPort; let accountPort;
let accountSecure; let accountSecure;
if (scopes.includes('imap')) { if (scopes.includes('*') || scopes.includes('imap')) {
// prefer IMAP
accountType = 'EmailTypeIMAP'; accountType = 'EmailTypeIMAP';
accountHost = config.imap.setup.hostname; accountHost = config.imap.setup.hostname;
accountPort = config.imap.setup.port || config.imap.port; accountPort = config.imap.setup.port || config.imap.port;