diff --git a/app/courrier/page.tsx b/app/courrier/page.tsx index 8898c08a..6779f235 100644 --- a/app/courrier/page.tsx +++ b/app/courrier/page.tsx @@ -329,9 +329,9 @@ const initialSidebarItems = [ ]; function getReplyBody(email: Email, type: 'reply' | 'reply-all' | 'forward'): string { - if (!email.raw) return ''; + if (!email.body) return ''; - const { headers, body } = splitEmailHeadersAndBody(email.raw); + const { headers, body } = splitEmailHeadersAndBody(email.body); const { contentType, encoding, charset } = parseEmailHeaders(headers); let content = ''; diff --git a/components/ComposeEmail.tsx b/components/ComposeEmail.tsx index 6941bc4b..f43644f1 100644 --- a/components/ComposeEmail.tsx +++ b/components/ComposeEmail.tsx @@ -216,10 +216,14 @@ export default function ComposeEmail({