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
commit1cea9d856f4904f0d62b568d9c0d31871d0fcd8a (patch)
tree6e7b30da64b18a42421831be7ede238815c9cf1e /deno/mail-relay/app.ts
parentf160809fabe9241867c7e3831351201f3df6c768 (diff)
downloadcrupest-1cea9d856f4904f0d62b568d9c0d31871d0fcd8a.tar.gz
crupest-1cea9d856f4904f0d62b568d9c0d31871d0fcd8a.tar.bz2
crupest-1cea9d856f4904f0d62b568d9c0d31871d0fcd8a.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)),