mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-21 07:46:06 +08:00
🎨 Fix to using imap-provider-settings package
Summary: see title Test Plan: manual Reviewers: spang, evan Reviewed By: evan Differential Revision: https://phab.nylas.com/D3772
This commit is contained in:
parent
899538d642
commit
5ed1f4da9e
File diff suppressed because it is too large
Load diff
|
@ -1,6 +1,7 @@
|
|||
/* eslint global-require: 0 */
|
||||
|
||||
import crypto from 'crypto';
|
||||
import {CommonProviderSettings} from 'imap-provider-settings'
|
||||
import {
|
||||
N1CloudAPI,
|
||||
NylasAPI,
|
||||
|
@ -164,8 +165,6 @@ export function isValidHost(value) {
|
|||
}
|
||||
|
||||
export function accountInfoWithIMAPAutocompletions(existingAccountInfo) {
|
||||
const CommonProviderSettings = require('./common-provider-settings.json');
|
||||
|
||||
const {email, type} = existingAccountInfo;
|
||||
const domain = email.split('@').pop().toLowerCase();
|
||||
const template = CommonProviderSettings[domain] || CommonProviderSettings[type] || {};
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
"fs-plus": "^2.3.2",
|
||||
"getmac": "1.x.x",
|
||||
"guid": "0.0.10",
|
||||
"imap-provider-settings": "nylas/imap-provider-settings",
|
||||
"immutable": "3.7.5",
|
||||
"jasmine-json": "~0.0",
|
||||
"jasmine-react-helpers": "^0.2",
|
||||
|
|
2
src/K2
2
src/K2
|
@ -1 +1 @@
|
|||
Subproject commit 6f7f161dc7a7bb938d9f2f513f0e307c73152f42
|
||||
Subproject commit 81a48d1fbb410608583b4556f95b569c0c5b889b
|
Loading…
Reference in a new issue