From ce4d768182b2ea75fb5ac714367c40a458b96d1a Mon Sep 17 00:00:00 2001 From: alma Date: Sat, 26 Apr 2025 09:30:36 +0200 Subject: [PATCH] panel 2 courier api restore --- lib/services/email-service.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/services/email-service.ts b/lib/services/email-service.ts index b7f1a190..59fd971a 100644 --- a/lib/services/email-service.ts +++ b/lib/services/email-service.ts @@ -656,6 +656,18 @@ export function formatEmailForReplyOrForward( cc = allRecipients .map(addr => `${addr.name} <${addr.address}>`) .join(', '); + } else if (type === 'forward') { + formattedContent = ` +
+

---------- Forwarded message ---------

+

From: ${decoded.from || ''}

+

Date: ${formatDate(decoded.date ? new Date(decoded.date) : null)}

+

Subject: ${decoded.subject || ''}

+

To: ${decoded.to || ''}

+
+ ${decoded.html || `
${decoded.text || ''}
`} +
+ `; } // Format the email body with quote