Add IMAP settings to base config

This commit is contained in:
fullgream 2025-05-27 04:12:55 +03:00
parent d78fbf730e
commit d902e8e183

View File

@ -10,6 +10,10 @@ const initalConfig = `{
"user": "example", "user": "example",
"password": "example", "password": "example",
"host": "pop3.example.com" "host": "pop3.example.com"
},
"imap-config": {
"host": "127.0.0.1",
"port": 143
} }
}`; }`;
@ -59,7 +63,7 @@ pop3.init().then(() => {
}); });
imap.listen( imap.listen(
global.config["imap-config"].port, global.config["imap-config"].port ?? 143,
global.config["imap-config"].host, global.config["imap-config"].host,
(err) => { (err) => {
if (err) throw err; if (err) throw err;