aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrant <[email protected]>2022-11-01 15:16:01 -0500
committergrant <[email protected]>2022-11-01 15:16:01 -0500
commitc83c31e68776649bfc6197da024c52ab8d9f15f1 (patch)
tree3f1b8bd911240029db7afb8e0ea3d089ef942fe5
parentf41da4f7031a0719c2ba87c2fcd0e34d24027c47 (diff)
not broken mbHEADmain
-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']