aboutsummaryrefslogtreecommitdiff
path: root/deno/mail-relay/app.ts
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-06-17 15:14:48 +0800
committerYuqian Yang <crupest@crupest.life>2025-06-17 21:37:43 +0800
commite3acdfd274086a183402b2f0c75e54c620bf954a (patch)
tree6e2ed8a38dcf2d8593f962d3c98f954c8d2c19d3 /deno/mail-relay/app.ts
parentdabfabbe0779b2f530db7351afa99cc38ce40d8f (diff)
downloadcrupest-e3acdfd274086a183402b2f0c75e54c620bf954a.tar.gz
crupest-e3acdfd274086a183402b2f0c75e54c620bf954a.tar.bz2
crupest-e3acdfd274086a183402b2f0c75e54c620bf954a.zip
mail: skip saving if cc myself, mark sent as read.
Diffstat (limited to 'deno/mail-relay/app.ts')
-rw-r--r--deno/mail-relay/app.ts9
1 files changed, 1 insertions, 8 deletions
diff --git a/deno/mail-relay/app.ts b/deno/mail-relay/app.ts
index 8cb33e6..bb35378 100644
--- a/deno/mail-relay/app.ts
+++ b/deno/mail-relay/app.ts
@@ -1,8 +1,6 @@
import { Hono } from "hono";
import { logger as honoLogger } from "hono/logger";
-import { LogFileProvider } from "@crupest/base/log";
-
import {
AliasRecipientMailHook,
FallbackRecipientHook,
@@ -13,7 +11,6 @@ import { DovecotMailDeliverer } from "./dovecot.ts";
import { DumbSmtpServer } from "./dumb-smtp-server.ts";
export function createInbound(
- logFileProvider: LogFileProvider,
{
fallback,
mailDomain,
@@ -28,11 +25,7 @@ export function createInbound(
doveadmPath: string;
},
) {
- const deliverer = new DovecotMailDeliverer(
- logFileProvider,
- ldaPath,
- doveadmPath,
- );
+ const deliverer = new DovecotMailDeliverer(ldaPath, doveadmPath);
deliverer.preHooks.push(
new RecipientFromHeadersHook(mailDomain),
new FallbackRecipientHook(new Set(fallback)),