diff --git a/app/mail/page.tsx b/app/mail/page.tsx index 5e2c2f1..7875a4c 100644 --- a/app/mail/page.tsx +++ b/app/mail/page.tsx @@ -1085,7 +1085,7 @@ export default function MailPage() { {sortedEmails.map((email) => (
handleEmailSelect(email.id)} @@ -1123,32 +1123,11 @@ export default function MailPage() {
-

+

{email.subject || '(No subject)'}

-
- - {(() => { - // Try to get clean preview text from the email body - let previewText = ''; - try { - // Remove HTML tags and decode entities - previewText = email.body - .replace(/<[^>]+>/g, '') // Remove HTML tags - .replace(/ /g, ' ') // Replace   with space - .replace(/\s+/g, ' ') // Normalize whitespace - .trim(); - - // Limit to a reasonable length - if (previewText.length > 100) { - previewText = previewText.substring(0, 100) + '...'; - } - } catch (e) { - previewText = ''; // Fallback to empty string if there's an error - } - return previewText || 'No preview available'; - })()} - +
+ --{email.id.toString().substring(0, 32)}...