diff --git a/app/mail/page.tsx b/app/mail/page.tsx
index 1873440..400d1fd 100644
--- a/app/mail/page.tsx
+++ b/app/mail/page.tsx
@@ -1106,7 +1106,18 @@ export default function MailPage() {
- {currentView === 'Sent' ? email.to : (email.fromName || email.from)}
+ {currentView === 'Sent' ? email.to : (
+ (() => {
+ // Check if email is in format "name "
+ const fromMatch = email.from.match(/^([^<]+)\s*<([^>]+)>$/);
+ if (fromMatch) {
+ // If we have both name and email, return just the name
+ return fromMatch[1].trim();
+ }
+ // If it's just an email address, return the full email
+ return email.from;
+ })()
+ )}