diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-04-30 00:20:23 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-04-30 13:32:43 +0800 |
commit | a58326c5cbe9a73a6b204dac4b9f077d8cf886f4 (patch) | |
tree | d01c21a1b621cc9fd738a816c4a4c4138eecae07 /services/docker/mail-server/aws-sendmail/delivers/dovecot.ts | |
parent | 84148346e29547cfba92dd697be9bbf31a23a926 (diff) | |
download | crupest-a58326c5cbe9a73a6b204dac4b9f077d8cf886f4.tar.gz crupest-a58326c5cbe9a73a6b204dac4b9f077d8cf886f4.tar.bz2 crupest-a58326c5cbe9a73a6b204dac4b9f077d8cf886f4.zip |
HALF WORK!: 2025-4-30 2
Diffstat (limited to 'services/docker/mail-server/aws-sendmail/delivers/dovecot.ts')
-rw-r--r-- | services/docker/mail-server/aws-sendmail/delivers/dovecot.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/services/docker/mail-server/aws-sendmail/delivers/dovecot.ts b/services/docker/mail-server/aws-sendmail/delivers/dovecot.ts index 2b35872..1b8c911 100644 --- a/services/docker/mail-server/aws-sendmail/delivers/dovecot.ts +++ b/services/docker/mail-server/aws-sendmail/delivers/dovecot.ts @@ -1,6 +1,5 @@ import { getLogger } from "../logger.ts"; -import { MailDeliverer } from "../deliver.ts"; -import { Mail } from "../mail.ts"; +import { Mail, MailDeliverer } from "../mail.ts"; export class DovecotMailDeliverer extends MailDeliverer { constructor() { @@ -31,11 +30,11 @@ export class DovecotMailDeliverer extends MailDeliverer { status = await ldaProcess.status; } catch (cause) { - this.throwError("external error.", mail, cause); + mail.throwDeliverError(this, "external error.", cause); } if (!status.success) { - this.throwError(`${ldaBin} exited with non-zero.`, mail); + mail.throwDeliverError(this, `${ldaBin} exited with non-zero.`); } } } |