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', {