From bb0a77e40f972e883499e52589d04b7db9bebb1c Mon Sep 17 00:00:00 2001 From: alma Date: Thu, 24 Apr 2025 16:21:01 +0200 Subject: [PATCH] mime change --- app/courrier/page.tsx | 1 - lib/mail-parser-wrapper.ts | 8 -------- 2 files changed, 9 deletions(-) diff --git a/app/courrier/page.tsx b/app/courrier/page.tsx index 3292c7f4..f579a1a1 100644 --- a/app/courrier/page.tsx +++ b/app/courrier/page.tsx @@ -114,7 +114,6 @@ async function renderEmailContent(email: Email) { try { if (!email.body) return null; - // For server-side rendering, parse the email const parsedEmail = await decodeEmail(email.body); if (parsedEmail.html) { diff --git a/lib/mail-parser-wrapper.ts b/lib/mail-parser-wrapper.ts index 41a5e76d..f39efd6b 100644 --- a/lib/mail-parser-wrapper.ts +++ b/lib/mail-parser-wrapper.ts @@ -26,14 +26,6 @@ export interface ParsedEmail { headers: Record; } -function getAddressText(address: AddressObject | AddressObject[] | undefined): string | null { - if (!address) return null; - if (Array.isArray(address)) { - return address.map(addr => addr.value?.[0]?.address || '').filter(Boolean).join(', '); - } - return address.value?.[0]?.address || null; -} - export async function decodeEmail(emailContent: string): Promise { try { const response = await fetch('/api/parse-email', {