From c83c31e68776649bfc6197da024c52ab8d9f15f1 Mon Sep 17 00:00:00 2001 From: grant Date: Tue, 1 Nov 2022 15:16:01 -0500 Subject: not broken mb --- index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.ts b/index.ts index 47141fc..668df61 100644 --- a/index.ts +++ b/index.ts @@ -167,14 +167,15 @@ app.post('/mail/get/update',async(req:any,res:any)=>{ return } console.log(mail.host) - /* + var client = new ImapClient(mail.host, parseInt(mail.port), { auth: { user: mail.address, pass: mail.creds, } - }).connect().then(()=>{ + }) + client.connect().then(()=>{ console.log('connected') //['uid', 'flags','envelope'] for just header stuff //['uid', 'flags','envelope','body'] -- cgit v1.2.3