diff --git a/app/courrier/page.tsx b/app/courrier/page.tsx index 9e84e056..c01cdb05 100644 --- a/app/courrier/page.tsx +++ b/app/courrier/page.tsx @@ -1638,25 +1638,56 @@ export default function CourrierPage() { folder: email.folder }; - // Rest of the function stays the same + // Format appropriate content with headers for reply/forward + let formattedContent = ''; + const formattedDate = formatDate(new Date(email.date)); + + if (type === 'reply' || type === 'reply-all') { + // Create reply quote header + formattedContent = ` +
+ `; + } else if (type === 'forward') { + // Create forward header + formattedContent = ` + + `; + } + + // Set state for compose form setIsReplying(true); setIsForwarding(type === 'forward'); setShowCompose(true); - const originalEmailContent = ` -