From 67d0d2eeba2a125163dd27cd52dd7674dc16212d Mon Sep 17 00:00:00 2001 From: AImighty Bot Date: Tue, 24 Nov 2026 05:49:49 +0000 Subject: [PATCH] =?UTF-8?q?Courier=2026.11.23:=20Inline-Anh=C3=A4nge=20mit?= =?UTF-8?q?=20Content-ID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OlaresManifest.yaml | 4 ++-- lib/queue.ts | 3 ++- lib/schema.ts | 10 ++++++++-- lib/transport.ts | 1 + olares/Chart.yaml | 4 ++-- olares/OlaresManifest.yaml | 4 ++-- package.json | 2 +- 7 files changed, 18 insertions(+), 10 deletions(-) diff --git a/OlaresManifest.yaml b/OlaresManifest.yaml index 59e3c4d..644c2d8 100644 --- a/OlaresManifest.yaml +++ b/OlaresManifest.yaml @@ -12,7 +12,7 @@ metadata: title: Courier description: Transaktionsmail für deine Apps über Amazon SES. icon: https://git.aimighty.olares.de/aimighty/courier/raw/branch/main/icon.png - version: 26.11.22 + version: 26.11.23 categories: - Applications @@ -106,7 +106,7 @@ envs: default: "1000" spec: - versionName: '26.11.22' + versionName: '26.11.23' fullDescription: | **Courier** ist ein kleiner Versanddienst für transaktionale E-Mails: eine Resend-kompatible HTTP-API, Warteschlange, Retry, Logs und diff --git a/lib/queue.ts b/lib/queue.ts index ca69595..774a93b 100644 --- a/lib/queue.ts +++ b/lib/queue.ts @@ -34,7 +34,7 @@ export type StoredPayload = { html?: string; text?: string; headers: Record; - attachments: { filename: string; content: string; content_type?: string }[]; + attachments: { filename: string; content: string; content_type?: string; content_id?: string }[]; tags: { name: string; value: string }[]; }; @@ -57,6 +57,7 @@ export function storedPayload(mail: NormalizedMail): StoredPayload { filename: item.filename, content: item.content.toString("base64"), content_type: item.contentType, + content_id: item.contentId, })), tags: mail.tags, }; diff --git a/lib/schema.ts b/lib/schema.ts index 225c1a7..ed83bb2 100644 --- a/lib/schema.ts +++ b/lib/schema.ts @@ -13,6 +13,7 @@ const attachmentInput = z.object({ filename: z.string().min(1).max(255), content: z.string().min(1), content_type: z.string().min(3).max(200).optional(), + content_id: z.string().min(1).max(200).optional(), }); export const sendSchema = z @@ -51,7 +52,7 @@ export type NormalizedMail = { html?: string; text?: string; headers: Record; - attachments: { filename: string; content: Buffer; contentType?: string }[]; + attachments: { filename: string; content: Buffer; contentType?: string; contentId?: string }[]; tags: { name: string; value: string }[]; }; @@ -105,7 +106,12 @@ export function normalizeMail(input: SendInput, fromDomain: string): NormalizedM const attachments = (input.attachments ?? []).map((item) => { const content = Buffer.from(item.content, "base64"); if (content.length === 0) throw new MailValidationError("Leerer Anhang"); - return { filename: item.filename, content, contentType: item.content_type }; + return { + filename: item.filename, + content, + contentType: item.content_type, + contentId: item.content_id, + }; }); const total = attachments.reduce((sum, item) => sum + item.content.length, 0); if (total > 10 * 1024 * 1024) { diff --git a/lib/transport.ts b/lib/transport.ts index 7e49524..b3e1eaa 100644 --- a/lib/transport.ts +++ b/lib/transport.ts @@ -27,6 +27,7 @@ function mimeOptions(payload: StoredPayload) { filename: item.filename, content: Buffer.from(item.content, "base64"), contentType: item.content_type, + cid: item.content_id, })), }; } diff --git a/olares/Chart.yaml b/olares/Chart.yaml index 84c23a4..a63978e 100644 --- a/olares/Chart.yaml +++ b/olares/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: courier description: Transaktionsmail-Gateway für hubsport.club über Amazon SES. type: application -version: 26.11.22 -appVersion: "26.11.22" +version: 26.11.23 +appVersion: "26.11.23" icon: https://git.aimighty.olares.de/aimighty/courier/raw/branch/main/icon.png home: https://git.aimighty.olares.de/aimighty/courier diff --git a/olares/OlaresManifest.yaml b/olares/OlaresManifest.yaml index 59e3c4d..644c2d8 100644 --- a/olares/OlaresManifest.yaml +++ b/olares/OlaresManifest.yaml @@ -12,7 +12,7 @@ metadata: title: Courier description: Transaktionsmail für deine Apps über Amazon SES. icon: https://git.aimighty.olares.de/aimighty/courier/raw/branch/main/icon.png - version: 26.11.22 + version: 26.11.23 categories: - Applications @@ -106,7 +106,7 @@ envs: default: "1000" spec: - versionName: '26.11.22' + versionName: '26.11.23' fullDescription: | **Courier** ist ein kleiner Versanddienst für transaktionale E-Mails: eine Resend-kompatible HTTP-API, Warteschlange, Retry, Logs und diff --git a/package.json b/package.json index 7ea4e7f..3462583 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "courier", - "version": "26.11.22", + "version": "26.11.23", "private": true, "scripts": { "dev": "next dev -H 0.0.0.0 -p 3400",