not broken mb
This commit is contained in:
parent
f41da4f703
commit
c83c31e687
5
index.ts
5
index.ts
|
@ -167,14 +167,15 @@ app.post('/mail/get/update',async(req:any,res:any)=>{
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
console.log(mail.host)
|
console.log(mail.host)
|
||||||
/*
|
|
||||||
var client = new ImapClient(mail.host, parseInt(mail.port), {
|
var client = new ImapClient(mail.host, parseInt(mail.port), {
|
||||||
auth: {
|
auth: {
|
||||||
user: mail.address,
|
user: mail.address,
|
||||||
pass: mail.creds,
|
pass: mail.creds,
|
||||||
|
|
||||||
}
|
}
|
||||||
}).connect().then(()=>{
|
})
|
||||||
|
client.connect().then(()=>{
|
||||||
console.log('connected')
|
console.log('connected')
|
||||||
//['uid', 'flags','envelope'] for just header stuff
|
//['uid', 'flags','envelope'] for just header stuff
|
||||||
//['uid', 'flags','envelope','body']
|
//['uid', 'flags','envelope','body']
|
||||||
|
|
Loading…
Reference in a new issue