mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-18 05:03:20 +00:00
chore(packaging): debian 12
This commit is contained in:
@@ -45,6 +45,7 @@ class ManageSieve {
|
||||
base64 = buff.toString('base64')
|
||||
response = await this.connection.send(`AUTHENTICATE "PLAIN" {${base64.length}+}\r\n${base64}`, { waitfor: /\b(OK|NO)/ })
|
||||
// console.debug(`ManageSieve.authenticate => ${response}`)
|
||||
// console.log(`AUTHENTICATE "PLAIN" {${base64.length}+}\r\n${base64}`)
|
||||
parsedResponse = this.parseResponse(response)
|
||||
if (!Object.keys(parsedResponse).includes('OK')) {
|
||||
throw new Error(`Authentication failed: ${parsedResponse['NO']}`)
|
||||
|
||||
Reference in New Issue
Block a user