diff --git a/components/email/ComposeEmail.tsx b/components/email/ComposeEmail.tsx index f825c940..b71684b8 100644 --- a/components/email/ComposeEmail.tsx +++ b/components/email/ComposeEmail.tsx @@ -200,48 +200,58 @@ export default function ComposeEmail(props: ComposeEmailProps) { // Provide a basic template if the content is empty const { fromStr, toStr, ccStr, dateStr, subject } = getFormattedInfoForEmail(initialEmail); const fallbackContent = ` -
| From: | +${fromStr} | +
| Date: | +${dateStr} | +
| Subject: | +${subject || ''} | +
| To: | +${toStr} | +
| Cc: | +${ccStr} | +
| From: | -${fromStr} | -
| Date: | -${dateStr} | -
| Subject: | -${subject || ''} | -
| To: | -${toStr} | -
| Cc: | -${ccStr} | -
Content Type: {typeof content === 'string' ? 'Text' : 'HTML'}
HTML Length: {typeof content === 'string' ? content.length : content?.html?.length || 0}
-Text Length: {typeof content === 'string' ? content.length : content?.text?.length || 0}
+Text Length: {typeof content === 'string' ? 0 : content?.text?.length || 0}
+Has Forwarded Header: {typeof content === 'string' ? + content.includes('Forwarded Message') : + (content?.html?.includes('Forwarded Message') || content?.text?.includes('Forwarded Message')) ? 'Yes' : 'No' + }