From 84aced7b4eaded56308dc4b298233b9ec3e18bd9 Mon Sep 17 00:00:00 2001 From: Stefan Hildebrandt <695494+hildebrandttk@users.noreply.github.com> Date: Mon, 15 Jun 2026 18:33:03 +0200 Subject: [PATCH] test(dev-mock): use comma display names in a mock email Give email-002 ("Project Update - Q1 Review") a sender and CC with "Lastname, Firstname" display names so Reply/Reply-All in dev mode exercises the comma-in-name recipient case end to end. --- app/api/dev-jmap/[...path]/route.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/dev-jmap/[...path]/route.ts b/app/api/dev-jmap/[...path]/route.ts index 74d5971b..351c3c72 100644 --- a/app/api/dev-jmap/[...path]/route.ts +++ b/app/api/dev-jmap/[...path]/route.ts @@ -121,9 +121,9 @@ const emails: MockEmail[] = [ }, { id: 'email-002', threadId: 'thread-002', mailboxIds: { 'mb-inbox': true }, keywords: { $seen: true, $flagged: true, '$label:blue': true }, size: 5100, receivedAt: daysAgo(1), - from: [{ name: 'Pierre Dubois', email: 'pierre@dubois.example' }], + from: [{ name: 'Dubois, Pierre', email: 'pierre@dubois.example' }], to: [{ name: 'Dev User', email: 'dev@localhost' }], - cc: [{ name: 'Karel de Vries', email: 'karel@devries.example' }], + cc: [{ name: 'de Vries, Karel', email: 'karel@devries.example' }], subject: 'Project Update - Q1 Review', preview: 'Salut team, I wanted to share the latest project numbers. We are on track to meet our targets for Q1.', hasAttachment: true,