Add IMAP settings to base config
This commit is contained in:
parent
d78fbf730e
commit
d902e8e183
@ -10,6 +10,10 @@ const initalConfig = `{
|
||||
"user": "example",
|
||||
"password": "example",
|
||||
"host": "pop3.example.com"
|
||||
},
|
||||
"imap-config": {
|
||||
"host": "127.0.0.1",
|
||||
"port": 143
|
||||
}
|
||||
}`;
|
||||
|
||||
@ -59,7 +63,7 @@ pop3.init().then(() => {
|
||||
});
|
||||
|
||||
imap.listen(
|
||||
global.config["imap-config"].port,
|
||||
global.config["imap-config"].port ?? 143,
|
||||
global.config["imap-config"].host,
|
||||
(err) => {
|
||||
if (err) throw err;
|
||||
|
Loading…
Reference in New Issue
Block a user