diff --git a/app/courrier/page.tsx b/app/courrier/page.tsx index 21938c49..6e931607 100644 --- a/app/courrier/page.tsx +++ b/app/courrier/page.tsx @@ -1128,6 +1128,184 @@ export default function CourrierPage() { } }; + // Add back the renderSidebarNav function + const renderSidebarNav = () => ( + + ); + + // Add back the handleReply function + const handleReply = (type: 'reply' | 'reply-all' | 'forward') => { + if (!selectedEmail) return; + + const getReplyTo = () => { + if (type === 'forward') return ''; + return selectedEmail.from; + }; + + const getReplyCc = () => { + if (type !== 'reply-all') return ''; + return selectedEmail.cc || ''; + }; + + const getReplySubject = () => { + const subject = selectedEmail.subject || ''; + if (type === 'forward') { + return subject.startsWith('Fwd:') ? subject : `Fwd: ${subject}`; + } + return subject.startsWith('Re:') ? subject : `Re: ${subject}`; + }; + + // Get the formatted original email content + const originalContent = getReplyBody(selectedEmail, type); + + // Create a clean structure with clear separation + const formattedContent = ` +
+