diff --git a/server.js b/server.js index 2f072d9..889debe 100644 --- a/server.js +++ b/server.js @@ -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;