aboutsummaryrefslogtreecommitdiff
path: root/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'index.ts')
-rw-r--r--index.ts5
1 files 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']