Skip to content

Email for professionals and teams

feat: show sender details and surface authentication warnings (#228)

Antoniocd4210b7767e
diff --git a/public/locales/ar.json b/public/locales/ar.json
index 6338b24..a0b1bf9 100644
--- a/public/locales/ar.json
+++ b/public/locales/ar.json
@@ -90,6 +90,27 @@
"message.forward": "إعادة توجيه",
"message.showOriginal": "عرض الأصل",
"message.details": "التفاصيل",
+ "message.detailsTitle": "تفاصيل الرسالة",
+ "message.detailsMessageSection": "الرسالة",
+ "message.detailsAuthentication": "المصادقة",
+ "message.detailsAuthenticationError": "تعذّر التحقق من المصادقة.",
+ "message.detailsAuthenticationFailureNote": "تعني نتيجة الفشل أن نطاق الإرسال لم يُتحقق منه؛ ولا تثبت أن الرسالة ضارة.",
+ "message.detailsAuthenticationNote": "نتيجة \"ناجحة\" تؤكد نطاق الإرسال، وليس الشخص أو الشركة.",
+ "message.detailsAuthenticationUnavailable": "نتائج المصادقة التي تحقق منها المزوّد غير متاحة لهذه الرسالة.",
+ "message.detailsChecking": "جارٍ التحقق من المصادقة…",
+ "message.detailsContact": "جهة الاتصال المحفوظة",
+ "message.detailsDomainMismatch": "نطاق التوقيع يختلف عن نطاق المرسل.",
+ "message.detailsEncryption": "التشفير",
+ "message.detailsExplanationTitle": "ماذا تعني هذه النتائج",
+ "message.detailsFrom": "المرسل الأصلي",
+ "message.detailsReplyTo": "الرد إلى",
+ "message.detailsReplyToWarning": "تذهب الردود على هذه الرسالة إلى عنوان آخر.",
+ "message.detailsSenderWarning": "يحتوي اسم المرسل على عنوان بريد إلكتروني مختلف.",
+ "message.senderCheckAuthenticationFailed": "فشلت مصادقة المرسل.",
+ "message.senderCheckCaution": "كن حذرًا عند فتح الروابط والمرفقات.",
+ "message.senderCheckShort": "تحقق من المرسل",
+ "message.senderCheckTitle": "فحوصات المرسل تحتاج إلى انتباه",
+ "message.senderCheckViewDetails": "مراجعة تفاصيل المرسل",
"message.date": "التاريخ",
"message.blockContact": "حظر جهة الاتصال",
"message.star": "تمييز بنجمة",
diff --git a/public/locales/bn.json b/public/locales/bn.json
index 6b34905..21b5cb5 100644
--- a/public/locales/bn.json
+++ b/public/locales/bn.json
@@ -78,6 +78,27 @@
"message.forward": "ফরোয়ার্ড করুন",
"message.showOriginal": "মূল বার্তা দেখান",
"message.details": "বিবরণ",
+ "message.detailsTitle": "বার্তার বিবরণ",
+ "message.detailsMessageSection": "বার্তা",
+ "message.detailsAuthentication": "প্রমাণীকরণ",
+ "message.detailsAuthenticationError": "প্রমাণীকরণ যাচাই করা যায়নি।",
+ "message.detailsAuthenticationFailureNote": "ব্যর্থ যাচাই মানে প্রেরকের ডোমেইন যাচাই করা যায়নি; এর অর্থ এই নয় যে বার্তাটি ক্ষতিকারক।",
+ "message.detailsAuthenticationNote": "\"পাস\" শুধু প্রেরকের ডোমেইন নিশ্চিত করে, ব্যক্তি বা প্রতিষ্ঠান নয়।",
+ "message.detailsAuthenticationUnavailable": "এই বার্তার জন্য প্রদানকারীর যাচাই করা প্রমাণীকরণ ফলাফল উপলব্ধ নেই।",
+ "message.detailsChecking": "প্রমাণীকরণ যাচাই করা হচ্ছে…",
+ "message.detailsContact": "সংরক্ষিত পরিচিতি",
+ "message.detailsDomainMismatch": "স্বাক্ষরের ডোমেইন প্রেরকের ডোমেইনের থেকে আলাদা।",
+ "message.detailsEncryption": "এনক্রিপশন",
+ "message.detailsExplanationTitle": "এই ফলাফলগুলোর অর্থ কী",
+ "message.detailsFrom": "মূল প্রেরক",
+ "message.detailsReplyTo": "উত্তর দিন",
+ "message.detailsReplyToWarning": "এই বার্তার উত্তর অন্য ঠিকানায় যায়।",
+ "message.detailsSenderWarning": "প্রেরকের নামে অন্য একটি ইমেল ঠিকানা রয়েছে।",
+ "message.senderCheckAuthenticationFailed": "প্রেরকের প্রমাণীকরণ ব্যর্থ হয়েছে।",
+ "message.senderCheckCaution": "লিঙ্ক ও সংযুক্তি নিয়ে সতর্ক থাকুন।",
+ "message.senderCheckShort": "প্রেরক যাচাই করুন",
+ "message.senderCheckTitle": "প্রেরক যাচাইয়ে মনোযোগ প্রয়োজন",
+ "message.senderCheckViewDetails": "প্রেরকের বিবরণ দেখুন",
"message.date": "তারিখ",
"message.blockContact": "যোগাযোগ ব্লক করুন",
"message.star": "তারকা দিন",
diff --git a/public/locales/de.json b/public/locales/de.json
index 7bda96c..fd5c742 100644
--- a/public/locales/de.json
+++ b/public/locales/de.json
@@ -78,6 +78,27 @@
"message.forward": "Weiterleiten",
"message.showOriginal": "Original anzeigen",
"message.details": "Details",
+ "message.detailsTitle": "Nachrichtendetails",
+ "message.detailsMessageSection": "Nachricht",
+ "message.detailsAuthentication": "Authentifizierung",
+ "message.detailsAuthenticationError": "Authentifizierung konnte nicht geprüft werden.",
+ "message.detailsAuthenticationFailureNote": "Eine fehlgeschlagene Prüfung bedeutet, dass die sendende Domain nicht verifiziert werden konnte; sie beweist nicht, dass die Nachricht bösartig ist.",
+ "message.detailsAuthenticationNote": "Ein „Bestanden“ bestätigt die sendende Domain, nicht die Person oder das Unternehmen.",
+ "message.detailsAuthenticationUnavailable": "Vom Anbieter bestätigte Authentifizierungsergebnisse sind für diese Nachricht nicht verfügbar.",
+ "message.detailsChecking": "Authentifizierung wird geprüft…",
+ "message.detailsContact": "Gespeicherter Kontakt",
+ "message.detailsDomainMismatch": "Die Signaturdomain unterscheidet sich von der Domain des Absenders.",
+ "message.detailsEncryption": "Verschlüsselung",
+ "message.detailsExplanationTitle": "Was diese Ergebnisse bedeuten",
+ "message.detailsFrom": "Ursprünglicher Absender",
+ "message.detailsReplyTo": "Antwort an",
+ "message.detailsReplyToWarning": "Antworten auf diese Nachricht gehen an eine andere Adresse.",
+ "message.detailsSenderWarning": "Der Absendername enthält eine andere E-Mail-Adresse.",
+ "message.senderCheckAuthenticationFailed": "Die Absenderauthentifizierung ist fehlgeschlagen.",
+ "message.senderCheckCaution": "Seien Sie bei Links und Anhängen vorsichtig.",
+ "message.senderCheckShort": "Absender prüfen",
+ "message.senderCheckTitle": "Absenderprüfungen erfordern Aufmerksamkeit",
+ "message.senderCheckViewDetails": "Absenderdetails prüfen",
"message.date": "Datum",
"message.blockContact": "Kontakt blockieren",
"message.star": "Markieren",
diff --git a/public/locales/es.json b/public/locales/es.json
index b156ef5..5cb5a48 100644
--- a/public/locales/es.json
+++ b/public/locales/es.json
@@ -81,6 +81,27 @@
"message.forward": "Reenviar",
"message.showOriginal": "Mostrar original",
"message.details": "Detalles",
+ "message.detailsTitle": "Detalles del mensaje",
+ "message.detailsMessageSection": "Mensaje",
+ "message.detailsAuthentication": "Autenticación",
+ "message.detailsAuthenticationError": "No se pudo comprobar la autenticación.",
+ "message.detailsAuthenticationFailureNote": "Una comprobación fallida significa que no se pudo verificar el dominio de envío; no demuestra que el mensaje sea malicioso.",
+ "message.detailsAuthenticationNote": "Un resultado «correcto» confirma el dominio de envío, no a la persona ni a la empresa.",
+ "message.detailsAuthenticationUnavailable": "Los resultados de autenticación verificados por el proveedor no están disponibles para este mensaje.",
+ "message.detailsChecking": "Comprobando la autenticación…",
+ "message.detailsContact": "Contacto guardado",
+ "message.detailsDomainMismatch": "El dominio de firma no coincide con el dominio del remitente.",
+ "message.detailsEncryption": "Cifrado",
+ "message.detailsExplanationTitle": "Qué significan estos resultados",
+ "message.detailsFrom": "Remitente original",
+ "message.detailsReplyTo": "Responder a",
+ "message.detailsReplyToWarning": "Las respuestas a este mensaje van a otra dirección.",
+ "message.detailsSenderWarning": "El nombre del remitente contiene otra dirección de correo.",
+ "message.senderCheckAuthenticationFailed": "La autenticación del remitente ha fallado.",
+ "message.senderCheckCaution": "Ten cuidado con los enlaces y archivos adjuntos.",
+ "message.senderCheckShort": "Revisar remitente",
+ "message.senderCheckTitle": "Las comprobaciones del remitente requieren atención",
+ "message.senderCheckViewDetails": "Revisar detalles del remitente",
"message.date": "Fecha",
"message.blockContact": "Bloquear contacto",
"message.star": "Destacar",
diff --git a/public/locales/fa.json b/public/locales/fa.json
index a81501d..1f65455 100644
--- a/public/locales/fa.json
+++ b/public/locales/fa.json
@@ -78,6 +78,27 @@
"message.forward": "ارسال مجدد",
"message.showOriginal": "نمایش اصل پیام",
"message.details": "جزئیات",
+ "message.detailsTitle": "جزئیات پیام",
+ "message.detailsMessageSection": "پیام",
+ "message.detailsAuthentication": "احراز هویت",
+ "message.detailsAuthenticationError": "بررسی احراز هویت ممکن نشد.",
+ "message.detailsAuthenticationFailureNote": "نتیجه ناموفق یعنی دامنه ارسال تأیید نشد؛ این به‌تنهایی ثابت نمی‌کند که پیام مخرب است.",
+ "message.detailsAuthenticationNote": "نتیجه «موفق» دامنه ارسال را تأیید می‌کند، نه شخص یا شرکت را.",
+ "message.detailsAuthenticationUnavailable": "نتایج احراز هویت تأییدشده توسط ارائه‌دهنده برای این پیام در دسترس نیست.",
+ "message.detailsChecking": "در حال بررسی احراز هویت…",
+ "message.detailsContact": "مخاطب ذخیره‌شده",
+ "message.detailsDomainMismatch": "دامنه امضا با دامنه فرستنده متفاوت است.",
+ "message.detailsEncryption": "رمزنگاری",
+ "message.detailsExplanationTitle": "این نتایج چه معنایی دارند",
+ "message.detailsFrom": "فرستنده اصلی",
+ "message.detailsReplyTo": "پاسخ به",
+ "message.detailsReplyToWarning": "پاسخ‌ها به این پیام به نشانی دیگری ارسال می‌شود.",
+ "message.detailsSenderWarning": "نام فرستنده شامل نشانی ایمیل دیگری است.",
+ "message.senderCheckAuthenticationFailed": "احراز هویت فرستنده ناموفق بود.",
+ "message.senderCheckCaution": "در مورد پیوندها و پیوست‌ها احتیاط کنید.",
+ "message.senderCheckShort": "بررسی فرستنده",
+ "message.senderCheckTitle": "بررسی‌های فرستنده نیاز به توجه دارد",
+ "message.senderCheckViewDetails": "بررسی جزئیات فرستنده",
"message.date": "تاریخ",
"message.blockContact": "مسدود کردن مخاطب",
"message.star": "ستاره‌دار کردن",
diff --git a/public/locales/fr.json b/public/locales/fr.json
index 0ef01c9..4a0a570 100644
--- a/public/locales/fr.json
+++ b/public/locales/fr.json
@@ -81,6 +81,27 @@
"message.forward": "Transférer",
"message.showOriginal": "Afficher l'original",
"message.details": "Détails",
+ "message.detailsTitle": "Détails du message",
+ "message.detailsMessageSection": "Message",
+ "message.detailsAuthentication": "Authentification",
+ "message.detailsAuthenticationError": "Impossible de vérifier l'authentification.",
+ "message.detailsAuthenticationFailureNote": "Un contrôle échoué signifie que le domaine d'envoi n'a pas pu être vérifié ; cela ne prouve pas que le message est malveillant.",
+ "message.detailsAuthenticationNote": "Un résultat « réussi » confirme le domaine d'envoi, pas la personne ni l'entreprise.",
+ "message.detailsAuthenticationUnavailable": "Les résultats d'authentification vérifiés par le fournisseur ne sont pas disponibles pour ce message.",
+ "message.detailsChecking": "Vérification de l'authentification…",
+ "message.detailsContact": "Contact enregistré",
+ "message.detailsDomainMismatch": "Le domaine de signature diffère du domaine de l'expéditeur.",
+ "message.detailsEncryption": "Chiffrement",
+ "message.detailsExplanationTitle": "Ce que signifient ces résultats",
+ "message.detailsFrom": "Expéditeur d'origine",
+ "message.detailsReplyTo": "Répondre à",
+ "message.detailsReplyToWarning": "Les réponses à ce message sont envoyées à une autre adresse.",
+ "message.detailsSenderWarning": "Le nom de l'expéditeur contient une autre adresse e-mail.",
+ "message.senderCheckAuthenticationFailed": "L'authentification de l'expéditeur a échoué.",
+ "message.senderCheckCaution": "Soyez prudent avec les liens et les pièces jointes.",
+ "message.senderCheckShort": "Vérifier l'expéditeur",
+ "message.senderCheckTitle": "Les vérifications de l'expéditeur nécessitent votre attention",
+ "message.senderCheckViewDetails": "Examiner les détails de l'expéditeur",
"message.date": "Date",
"message.blockContact": "Bloquer le contact",
"message.star": "Suivre",
diff --git a/public/locales/gu.json b/public/locales/gu.json
index bc34119..a2cbcf5 100644
--- a/public/locales/gu.json
+++ b/public/locales/gu.json
@@ -78,6 +78,27 @@
"message.forward": "ફૉરવર્ડ કરો",
"message.showOriginal": "મૂળ બતાવો",
"message.details": "વિગતો",
+ "message.detailsTitle": "સંદેશની વિગતો",
+ "message.detailsMessageSection": "સંદેશ",
+ "message.detailsAuthentication": "પ્રમાણીકરણ",
+ "message.detailsAuthenticationError": "પ્રમાણીકરણ ચકાસી શકાયું નહીં.",
+ "message.detailsAuthenticationFailureNote": "નિષ્ફળ ચકાસણીનો અર્થ છે કે મોકલનારનું ડોમેન ચકાસી શકાયું નથી; તે સંદેશને હાનિકારક સાબિત કરતું નથી.",
+ "message.detailsAuthenticationNote": "\"પાસ\" ફક્ત મોકલનારનું ડોમેન પુષ્ટિ કરે છે, વ્યક્તિ કે કંપની નહીં.",
+ "message.detailsAuthenticationUnavailable": "આ સંદેશ માટે પ્રદાતા-ચકાસાયેલ પ્રમાણીકરણ પરિણામો ઉપલબ્ધ નથી.",
+ "message.detailsChecking": "પ્રમાણીકરણ ચકાસી રહ્યાં છીએ…",
+ "message.detailsContact": "સાચવેલ સંપર્ક",
+ "message.detailsDomainMismatch": "સહીનું ડોમેન મોકલનારના ડોમેન કરતાં અલગ છે.",
+ "message.detailsEncryption": "એન્ક્રિપ્શન",
+ "message.detailsExplanationTitle": "આ પરિણામોનો અર્થ શું છે",
+ "message.detailsFrom": "મૂળ મોકલનાર",
+ "message.detailsReplyTo": "જવાબ આપો",
+ "message.detailsReplyToWarning": "આ સંદેશના જવાબ બીજા સરનામે જાય છે.",
+ "message.detailsSenderWarning": "મોકલનારના નામમાં બીજું ઈમેલ સરનામું છે.",
+ "message.senderCheckAuthenticationFailed": "મોકલનારનું પ્રમાણીકરણ નિષ્ફળ ગયું.",
+ "message.senderCheckCaution": "લિંક અને જોડાણો સાથે સાવધાન રહો.",
+ "message.senderCheckShort": "મોકલનાર ચકાસો",
+ "message.senderCheckTitle": "મોકલનારની ચકાસણી પર ધ્યાન આપવાની જરૂર છે",
+ "message.senderCheckViewDetails": "મોકલનારની વિગતો તપાસો",
"message.date": "તારીખ",
"message.blockContact": "સંપર્ક બ્લૉક કરો",
"message.star": "તારો આપો",
diff --git a/public/locales/ha.json b/public/locales/ha.json
index e9006f6..eec27d3 100644
--- a/public/locales/ha.json
+++ b/public/locales/ha.json
@@ -78,6 +78,27 @@
"message.forward": "Tura",
"message.showOriginal": "Nuna na asali",
"message.details": "Bayanai",
+ "message.detailsTitle": "Bayanan saƙo",
+ "message.detailsMessageSection": "Saƙo",
+ "message.detailsAuthentication": "Tabbatarwa",
+ "message.detailsAuthenticationError": "Ba a iya duba tabbatarwa ba.",
+ "message.detailsAuthenticationFailureNote": "Gwajin da ya kasa yana nufin ba a iya tabbatar da yankin mai aikawa ba; hakan ba ya tabbatar da cewa saƙon yana da lahani.",
+ "message.detailsAuthenticationNote": "Sakamakon \"ya wuce\" yana tabbatar da yankin aikewa, ba mutum ko kamfani ba.",
+ "message.detailsAuthenticationUnavailable": "Sakamakon tabbatarwa da mai bada sabis ya tabbatar ba ya samuwa ga wannan saƙon.",
+ "message.detailsChecking": "Ana duba tabbatarwa…",
+ "message.detailsContact": "Lambar da aka adana",
+ "message.detailsDomainMismatch": "Yankin sa hannu ya bambanta da yankin mai aikawa.",
+ "message.detailsEncryption": "Ƙirƙirar sirri",
+ "message.detailsExplanationTitle": "Abin da waɗannan sakamakon ke nufi",
+ "message.detailsFrom": "Mai aikawa na asali",
+ "message.detailsReplyTo": "Amsa zuwa",
+ "message.detailsReplyToWarning": "Amsoshin wannan saƙon suna zuwa wani adireshi.",
+ "message.detailsSenderWarning": "Sunan mai aikawa yana ɗauke da wani adireshin imel.",
+ "message.senderCheckAuthenticationFailed": "Tabbatar da mai aikawa ya kasa.",
+ "message.senderCheckCaution": "Yi taka tsantsan da hanyoyi da haɗe-haɗe.",
+ "message.senderCheckShort": "Duba mai aikawa",
+ "message.senderCheckTitle": "Dubawa mai aikawa na buƙatar kulawa",
+ "message.senderCheckViewDetails": "Duba bayanan mai aikawa",
"message.date": "Kwanan wata",
"message.blockContact": "Toshe abokin hulɗa",
"message.star": "Sa tauraro",
diff --git a/public/locales/hi.json b/public/locales/hi.json
index b5889dc..5267ac3 100644
--- a/public/locales/hi.json
+++ b/public/locales/hi.json
@@ -78,6 +78,27 @@
"message.forward": "अग्रेषित करें",
"message.showOriginal": "मूल संदेश दिखाएँ",
"message.details": "विवरण",
+ "message.detailsTitle": "संदेश विवरण",
+ "message.detailsMessageSection": "संदेश",
+ "message.detailsAuthentication": "प्रमाणीकरण",
+ "message.detailsAuthenticationError": "प्रमाणीकरण जाँचा नहीं जा सका।",
+ "message.detailsAuthenticationFailureNote": "विफल जाँच का अर्थ है कि भेजने वाले डोमेन की पुष्टि नहीं हो सकी; इससे यह सिद्ध नहीं होता कि संदेश दुर्भावनापूर्ण है।",
+ "message.detailsAuthenticationNote": "\"पास\" केवल भेजने वाले डोमेन की पुष्टि करता है, व्यक्ति या कंपनी की नहीं।",
+ "message.detailsAuthenticationUnavailable": "इस संदेश के लिए प्रदाता-सत्यापित प्रमाणीकरण परिणाम उपलब्ध नहीं हैं।",
+ "message.detailsChecking": "प्रमाणीकरण जाँचा जा रहा है…",
+ "message.detailsContact": "सहेजा गया संपर्क",
+ "message.detailsDomainMismatch": "हस्ताक्षर डोमेन प्रेषक के डोमेन से भिन्न है।",
+ "message.detailsEncryption": "एन्क्रिप्शन",
+ "message.detailsExplanationTitle": "इन परिणामों का क्या अर्थ है",
+ "message.detailsFrom": "मूल प्रेषक",
+ "message.detailsReplyTo": "उत्तर दें",
+ "message.detailsReplyToWarning": "इस संदेश के उत्तर किसी दूसरे पते पर जाते हैं।",
+ "message.detailsSenderWarning": "प्रेषक के नाम में कोई दूसरा ईमेल पता है।",
+ "message.senderCheckAuthenticationFailed": "प्रेषक का प्रमाणीकरण विफल रहा।",
+ "message.senderCheckCaution": "लिंक और अनुलग्नकों से सावधान रहें।",
+ "message.senderCheckShort": "प्रेषक जाँचें",
+ "message.senderCheckTitle": "प्रेषक जाँचों पर ध्यान देने की आवश्यकता है",
+ "message.senderCheckViewDetails": "प्रेषक विवरण देखें",
"message.date": "तारीख़",
"message.blockContact": "संपर्क ब्लॉक करें",
"message.star": "स्टार लगाएँ",
diff --git a/public/locales/id.json b/public/locales/id.json
index 8b68370..4e4d20e 100644
--- a/public/locales/id.json
+++ b/public/locales/id.json
@@ -75,6 +75,27 @@
"message.forward": "Teruskan",
"message.showOriginal": "Tampilkan aslinya",
"message.details": "Detail",
+ "message.detailsTitle": "Detail pesan",
+ "message.detailsMessageSection": "Pesan",
+ "message.detailsAuthentication": "Autentikasi",
+ "message.detailsAuthenticationError": "Tidak dapat memeriksa autentikasi.",
+ "message.detailsAuthenticationFailureNote": "Pemeriksaan yang gagal berarti domain pengirim tidak dapat diverifikasi; ini tidak membuktikan pesan berbahaya.",
+ "message.detailsAuthenticationNote": "Hasil \"lulus\" memastikan domain pengirim, bukan orang atau perusahaan.",
+ "message.detailsAuthenticationUnavailable": "Hasil autentikasi yang diverifikasi penyedia tidak tersedia untuk pesan ini.",
+ "message.detailsChecking": "Memeriksa autentikasi…",
+ "message.detailsContact": "Kontak tersimpan",
+ "message.detailsDomainMismatch": "Domain tanda tangan berbeda dari domain pengirim.",
+ "message.detailsEncryption": "Enkripsi",
+ "message.detailsExplanationTitle": "Arti hasil ini",
+ "message.detailsFrom": "Pengirim asli",
+ "message.detailsReplyTo": "Balas ke",
+ "message.detailsReplyToWarning": "Balasan untuk pesan ini dikirim ke alamat lain.",
+ "message.detailsSenderWarning": "Nama pengirim berisi alamat email yang berbeda.",
+ "message.senderCheckAuthenticationFailed": "Autentikasi pengirim gagal.",
+ "message.senderCheckCaution": "Berhati-hatilah dengan tautan dan lampiran.",
+ "message.senderCheckShort": "Periksa pengirim",
+ "message.senderCheckTitle": "Pemeriksaan pengirim perlu diperhatikan",
+ "message.senderCheckViewDetails": "Tinjau detail pengirim",
"message.date": "Tanggal",
"message.blockContact": "Blokir kontak",
"message.star": "Beri bintang",
diff --git a/public/locales/it.json b/public/locales/it.json
index cbbec17..b220439 100644
--- a/public/locales/it.json
+++ b/public/locales/it.json
@@ -81,6 +81,27 @@
"message.forward": "Inoltra",
"message.showOriginal": "Mostra originale",
"message.details": "Dettagli",
+ "message.detailsTitle": "Dettagli messaggio",
+ "message.detailsMessageSection": "Messaggio",
+ "message.detailsAuthentication": "Autenticazione",
+ "message.detailsAuthenticationError": "Impossibile verificare l'autenticazione.",
+ "message.detailsAuthenticationFailureNote": "Un controllo non riuscito significa che il dominio di invio non è stato verificato; non dimostra che il messaggio sia dannoso.",
+ "message.detailsAuthenticationNote": "Un esito \"superato\" conferma il dominio di invio, non la persona o l'azienda.",
+ "message.detailsAuthenticationUnavailable": "I risultati di autenticazione verificati dal provider non sono disponibili per questo messaggio.",
+ "message.detailsChecking": "Verifica dell'autenticazione…",
+ "message.detailsContact": "Contatto salvato",
+ "message.detailsDomainMismatch": "Il dominio della firma è diverso dal dominio del mittente.",
+ "message.detailsEncryption": "Crittografia",
+ "message.detailsExplanationTitle": "Cosa significano questi risultati",
+ "message.detailsFrom": "Mittente originale",
+ "message.detailsReplyTo": "Rispondi a",
+ "message.detailsReplyToWarning": "Le risposte a questo messaggio vanno a un altro indirizzo.",
+ "message.detailsSenderWarning": "Il nome del mittente contiene un altro indirizzo email.",
+ "message.senderCheckAuthenticationFailed": "L'autenticazione del mittente non è riuscita.",
+ "message.senderCheckCaution": "Presta attenzione a link e allegati.",
+ "message.senderCheckShort": "Controlla mittente",
+ "message.senderCheckTitle": "I controlli sul mittente richiedono attenzione",
+ "message.senderCheckViewDetails": "Esamina i dettagli del mittente",
"message.date": "Data",
"message.blockContact": "Blocca contatto",
"message.star": "Contrassegna",
diff --git a/public/locales/ja.json b/public/locales/ja.json
index 3442b72..1ec9e96 100644
--- a/public/locales/ja.json
+++ b/public/locales/ja.json
@@ -75,6 +75,27 @@
"message.forward": "転送",
"message.showOriginal": "元のメッセージを表示",
"message.details": "詳細",
+ "message.detailsTitle": "メッセージの詳細",
+ "message.detailsMessageSection": "メッセージ",
+ "message.detailsAuthentication": "認証",
+ "message.detailsAuthenticationError": "認証を確認できませんでした。",
+ "message.detailsAuthenticationFailureNote": "チェックに失敗した場合、送信ドメインを確認できなかったということであり、メッセージが悪意あるものだとは限りません。",
+ "message.detailsAuthenticationNote": "「合格」は送信ドメインを確認するもので、人物や企業を保証するものではありません。",
+ "message.detailsAuthenticationUnavailable": "このメッセージにはプロバイダーが検証した認証結果がありません。",
+ "message.detailsChecking": "認証を確認しています…",
+ "message.detailsContact": "保存済みの連絡先",
+ "message.detailsDomainMismatch": "署名ドメインが送信者のドメインと異なります。",
+ "message.detailsEncryption": "暗号化",
+ "message.detailsExplanationTitle": "この結果の意味",
+ "message.detailsFrom": "元の送信者",
+ "message.detailsReplyTo": "返信先",
+ "message.detailsReplyToWarning": "このメッセージへの返信は別のアドレスに送信されます。",
+ "message.detailsSenderWarning": "送信者名に別のメールアドレスが含まれています。",
+ "message.senderCheckAuthenticationFailed": "送信者の認証に失敗しました。",
+ "message.senderCheckCaution": "リンクや添付ファイルには注意してください。",
+ "message.senderCheckShort": "送信者を確認",
+ "message.senderCheckTitle": "送信者の確認に注意が必要です",
+ "message.senderCheckViewDetails": "送信者の詳細を確認",
"message.date": "日付",
"message.blockContact": "連絡先をブロック",
"message.star": "スターを付ける",
diff --git a/public/locales/kn.json b/public/locales/kn.json
index 1d19ebf..d6591fc 100644
--- a/public/locales/kn.json
+++ b/public/locales/kn.json
@@ -78,6 +78,27 @@
"message.forward": "ಫಾರ್ವರ್ಡ್ ಮಾಡಿ",
"message.showOriginal": "ಮೂಲವನ್ನು ತೋರಿಸಿ",
"message.details": "ವಿವರಗಳು",
+ "message.detailsTitle": "ಸಂದೇಶದ ವಿವರಗಳು",
+ "message.detailsMessageSection": "ಸಂದೇಶ",
+ "message.detailsAuthentication": "ದೃಢೀಕರಣ",
+ "message.detailsAuthenticationError": "ದೃಢೀಕರಣವನ್ನು ಪರಿಶೀಲಿಸಲಾಗಲಿಲ್ಲ.",
+ "message.detailsAuthenticationFailureNote": "ವಿಫಲವಾದ ಪರಿಶೀಲನೆ ಎಂದರೆ ಕಳುಹಿಸುವ ಡೊಮೇನ್ ಅನ್ನು ಪರಿಶೀಲಿಸಲಾಗಲಿಲ್ಲ; ಇದು ಸಂದೇಶವು ಹಾನಿಕಾರಕ ಎಂದು ಸಾಬೀತುಪಡಿಸುವುದಿಲ್ಲ.",
+ "message.detailsAuthenticationNote": "\"ಪಾಸ್\" ಕಳುಹಿಸುವ ಡೊಮೇನ್ ಅನ್ನು ಮಾತ್ರ ದೃಢೀಕರಿಸುತ್ತದೆ, ವ್ಯಕ್ತಿ ಅಥವಾ ಕಂಪನಿಯನ್ನು ಅಲ್ಲ.",
+ "message.detailsAuthenticationUnavailable": "ಈ ಸಂದೇಶಕ್ಕೆ ಪೂರೈಕೆದಾರರು ಪರಿಶೀಲಿಸಿದ ದೃಢೀಕರಣ ಫಲಿತಾಂಶಗಳು ಲಭ್ಯವಿಲ್ಲ.",
+ "message.detailsChecking": "ದೃಢೀಕರಣವನ್ನು ಪರಿಶೀಲಿಸಲಾಗುತ್ತಿದೆ…",
+ "message.detailsContact": "ಉಳಿಸಿದ ಸಂಪರ್ಕ",
+ "message.detailsDomainMismatch": "ಸಹಿ ಡೊಮೇನ್ ಕಳುಹಿಸುವವರ ಡೊಮೇನ್‌ಗಿಂತ ಭಿನ್ನವಾಗಿದೆ.",
+ "message.detailsEncryption": "ಎನ್‌ಕ್ರಿಪ್ಷನ್",
+ "message.detailsExplanationTitle": "ಈ ಫಲಿತಾಂಶಗಳ ಅರ್ಥವೇನು",
+ "message.detailsFrom": "ಮೂಲ ಕಳುಹಿಸುವವರು",
+ "message.detailsReplyTo": "ಇದಕ್ಕೆ ಉತ್ತರಿಸಿ",
+ "message.detailsReplyToWarning": "ಈ ಸಂದೇಶಕ್ಕೆ ಉತ್ತರಗಳು ಬೇರೆ ವಿಳಾಸಕ್ಕೆ ಹೋಗುತ್ತವೆ.",
+ "message.detailsSenderWarning": "ಕಳುಹಿಸುವವರ ಹೆಸರಿನಲ್ಲಿ ಬೇರೆ ಇಮೇಲ್ ವಿಳಾಸವಿದೆ.",
+ "message.senderCheckAuthenticationFailed": "ಕಳುಹಿಸುವವರ ದೃಢೀಕರಣ ವಿಫಲವಾಗಿದೆ.",
+ "message.senderCheckCaution": "ಲಿಂಕ್‌ಗಳು ಮತ್ತು ಲಗತ್ತುಗಳ ಬಗ್ಗೆ ಎಚ್ಚರವಹಿಸಿ.",
+ "message.senderCheckShort": "ಕಳುಹಿಸುವವರನ್ನು ಪರಿಶೀಲಿಸಿ",
+ "message.senderCheckTitle": "ಕಳುಹಿಸುವವರ ಪರಿಶೀಲನೆಗಳಿಗೆ ಗಮನ ಅಗತ್ಯ",
+ "message.senderCheckViewDetails": "ಕಳುಹಿಸುವವರ ವಿವರಗಳನ್ನು ಪರಿಶೀಲಿಸಿ",
"message.date": "ದಿನಾಂಕ",
"message.blockContact": "ಸಂಪರ್ಕವನ್ನು ನಿರ್ಬಂಧಿಸಿ",
"message.star": "ನಕ್ಷತ್ರ ಹಾಕಿ",
diff --git a/public/locales/ko.json b/public/locales/ko.json
index 2b8cd6f..754229a 100644
--- a/public/locales/ko.json
+++ b/public/locales/ko.json
@@ -78,6 +78,27 @@
"message.forward": "전달",
"message.showOriginal": "원본 보기",
"message.details": "세부 정보",
+ "message.detailsTitle": "메시지 세부정보",
+ "message.detailsMessageSection": "메시지",
+ "message.detailsAuthentication": "인증",
+ "message.detailsAuthenticationError": "인증을 확인할 수 없습니다.",
+ "message.detailsAuthenticationFailureNote": "검사에 실패했다는 것은 발신 도메인을 확인하지 못했다는 뜻이며, 메시지가 악성이라는 증거는 아닙니다.",
+ "message.detailsAuthenticationNote": "\"통과\"는 발신 도메인을 확인할 뿐 사람이나 회사를 보증하지 않습니다.",
+ "message.detailsAuthenticationUnavailable": "이 메시지에는 공급자가 확인한 인증 결과가 없습니다.",
+ "message.detailsChecking": "인증 확인 중…",
+ "message.detailsContact": "저장된 연락처",
+ "message.detailsDomainMismatch": "서명 도메인이 발신자 도메인과 다릅니다.",
+ "message.detailsEncryption": "암호화",
+ "message.detailsExplanationTitle": "이 결과의 의미",
+ "message.detailsFrom": "원래 발신자",
+ "message.detailsReplyTo": "회신 대상",
+ "message.detailsReplyToWarning": "이 메시지에 대한 회신은 다른 주소로 전송됩니다.",
+ "message.detailsSenderWarning": "발신자 이름에 다른 이메일 주소가 포함되어 있습니다.",
+ "message.senderCheckAuthenticationFailed": "발신자 인증에 실패했습니다.",
+ "message.senderCheckCaution": "링크와 첨부 파일에 주의하세요.",
+ "message.senderCheckShort": "발신자 확인",
+ "message.senderCheckTitle": "발신자 확인에 주의가 필요합니다",
+ "message.senderCheckViewDetails": "발신자 세부정보 검토",
"message.date": "날짜",
"message.blockContact": "연락처 차단",
"message.star": "별표",
diff --git a/public/locales/ml.json b/public/locales/ml.json
index 8f870ba..0b856ca 100644
--- a/public/locales/ml.json
+++ b/public/locales/ml.json
@@ -78,6 +78,27 @@
"message.forward": "ഫോർവേഡ് ചെയ്യുക",
"message.showOriginal": "യഥാർത്ഥം കാണിക്കുക",
"message.details": "വിശദാംശങ്ങൾ",
+ "message.detailsTitle": "സന്ദേശ വിശദാംശങ്ങൾ",
+ "message.detailsMessageSection": "സന്ദേശം",
+ "message.detailsAuthentication": "പ്രാമാണീകരണം",
+ "message.detailsAuthenticationError": "പ്രാമാണീകരണം പരിശോധിക്കാനായില്ല.",
+ "message.detailsAuthenticationFailureNote": "പരിശോധന പരാജയപ്പെട്ടു എന്നാൽ അയയ്ക്കുന്ന ഡൊമെയ്ൻ സ്ഥിരീകരിക്കാനായില്ല എന്നാണ്; അത് സന്ദേശം ദോഷകരമാണെന്ന് തെളിയിക്കുന്നില്ല.",
+ "message.detailsAuthenticationNote": "\"പാസ്\" അയയ്ക്കുന്ന ഡൊമെയ്ൻ മാത്രം സ്ഥിരീകരിക്കുന്നു, വ്യക്തിയെയോ കമ്പനിയെയോ അല്ല.",
+ "message.detailsAuthenticationUnavailable": "ഈ സന്ദേശത്തിന് ദാതാവ് സ്ഥിരീകരിച്ച പ്രാമാണീകരണ ഫലങ്ങൾ ലഭ്യമല്ല.",
+ "message.detailsChecking": "പ്രാമാണീകരണം പരിശോധിക്കുന്നു…",
+ "message.detailsContact": "സംരക്ഷിച്ച കോൺടാക്റ്റ്",
+ "message.detailsDomainMismatch": "ഒപ്പിട്ട ഡൊമെയ്ൻ അയച്ചയാളുടെ ഡൊമെയ്നിൽ നിന്ന് വ്യത്യസ്തമാണ്.",
+ "message.detailsEncryption": "എൻക്രിപ്ഷൻ",
+ "message.detailsExplanationTitle": "ഈ ഫലങ്ങളുടെ അർത്ഥം",
+ "message.detailsFrom": "യഥാർത്ഥ അയച്ചയാൾ",
+ "message.detailsReplyTo": "മറുപടി നൽകാൻ",
+ "message.detailsReplyToWarning": "ഈ സന്ദേശത്തിനുള്ള മറുപടികൾ മറ്റൊരു വിലാസത്തിലേക്ക് പോകുന്നു.",
+ "message.detailsSenderWarning": "അയച്ചയാളുടെ പേരിൽ മറ്റൊരു ഇമെയിൽ വിലാസമുണ്ട്.",
+ "message.senderCheckAuthenticationFailed": "അയച്ചയാളുടെ പ്രാമാണീകരണം പരാജയപ്പെട്ടു.",
+ "message.senderCheckCaution": "ലിങ്കുകളിലും അറ്റാച്ചുമെന്റുകളിലും ശ്രദ്ധിക്കുക.",
+ "message.senderCheckShort": "അയച്ചയാളെ പരിശോധിക്കുക",
+ "message.senderCheckTitle": "അയച്ചയാളുടെ പരിശോധനകൾക്ക് ശ്രദ്ധ ആവശ്യമാണ്",
+ "message.senderCheckViewDetails": "അയച്ചയാളുടെ വിശദാംശങ്ങൾ പരിശോധിക്കുക",
"message.date": "തീയതി",
"message.blockContact": "കോൺടാക്റ്റ് തടയുക",
"message.star": "നക്ഷത്രമിടുക",
diff --git a/public/locales/mr.json b/public/locales/mr.json
index 949097d..6a659cf 100644
--- a/public/locales/mr.json
+++ b/public/locales/mr.json
@@ -78,6 +78,27 @@
"message.forward": "अग्रेषित करा",
"message.showOriginal": "मूळ दाखवा",
"message.details": "तपशील",
+ "message.detailsTitle": "संदेश तपशील",
+ "message.detailsMessageSection": "संदेश",
+ "message.detailsAuthentication": "प्रमाणीकरण",
+ "message.detailsAuthenticationError": "प्रमाणीकरण तपासता आले नाही.",
+ "message.detailsAuthenticationFailureNote": "अयशस्वी तपासणीचा अर्थ पाठवणाऱ्याचे डोमेन सत्यापित होऊ शकले नाही; याचा अर्थ संदेश हानिकारक आहे असा होत नाही.",
+ "message.detailsAuthenticationNote": "\"उत्तीर्ण\" फक्त पाठवणाऱ्याचे डोमेन पुष्टी करते, व्यक्ती किंवा कंपनी नाही.",
+ "message.detailsAuthenticationUnavailable": "या संदेशासाठी प्रदाता-सत्यापित प्रमाणीकरण परिणाम उपलब्ध नाहीत.",
+ "message.detailsChecking": "प्रमाणीकरण तपासत आहे…",
+ "message.detailsContact": "जतन केलेला संपर्क",
+ "message.detailsDomainMismatch": "स्वाक्षरीचे डोमेन प्रेषकाच्या डोमेनपेक्षा वेगळे आहे.",
+ "message.detailsEncryption": "एन्क्रिप्शन",
+ "message.detailsExplanationTitle": "या निकालांचा अर्थ काय आहे",
+ "message.detailsFrom": "मूळ प्रेषक",
+ "message.detailsReplyTo": "यास उत्तर द्या",
+ "message.detailsReplyToWarning": "या संदेशाची उत्तरे दुसऱ्या पत्त्यावर जातात.",
+ "message.detailsSenderWarning": "प्रेषकाच्या नावात दुसरा ईमेल पत्ता आहे.",
+ "message.senderCheckAuthenticationFailed": "प्रेषकाचे प्रमाणीकरण अयशस्वी झाले.",
+ "message.senderCheckCaution": "दुवे आणि जोडपत्रांबाबत सावधान रहा.",
+ "message.senderCheckShort": "प्रेषक तपासा",
+ "message.senderCheckTitle": "प्रेषक तपासण्यांकडे लक्ष देणे आवश्यक आहे",
+ "message.senderCheckViewDetails": "प्रेषक तपशील तपासा",
"message.date": "तारीख",
"message.blockContact": "संपर्क ब्लॉक करा",
"message.star": "तारांकित करा",
diff --git a/public/locales/ms.json b/public/locales/ms.json
index 8f5898e..18d8261 100644
--- a/public/locales/ms.json
+++ b/public/locales/ms.json
@@ -78,6 +78,27 @@
"message.forward": "Majukan",
"message.showOriginal": "Tunjuk asal",
"message.details": "Butiran",
+ "message.detailsTitle": "Butiran mesej",
+ "message.detailsMessageSection": "Mesej",
+ "message.detailsAuthentication": "Pengesahan",
+ "message.detailsAuthenticationError": "Tidak dapat menyemak pengesahan.",
+ "message.detailsAuthenticationFailureNote": "Semakan yang gagal bermaksud domain penghantar tidak dapat disahkan; ia tidak membuktikan mesej itu berniat jahat.",
+ "message.detailsAuthenticationNote": "Keputusan \"lulus\" mengesahkan domain penghantar, bukan orang atau syarikat.",
+ "message.detailsAuthenticationUnavailable": "Keputusan pengesahan yang disahkan penyedia tidak tersedia untuk mesej ini.",
+ "message.detailsChecking": "Menyemak pengesahan…",
+ "message.detailsContact": "Kenalan disimpan",
+ "message.detailsDomainMismatch": "Domain tandatangan berbeza daripada domain penghantar.",
+ "message.detailsEncryption": "Penyulitan",
+ "message.detailsExplanationTitle": "Apakah maksud keputusan ini",
+ "message.detailsFrom": "Penghantar asal",
+ "message.detailsReplyTo": "Balas kepada",
+ "message.detailsReplyToWarning": "Balasan kepada mesej ini pergi ke alamat lain.",
+ "message.detailsSenderWarning": "Nama penghantar mengandungi alamat e-mel yang berbeza.",
+ "message.senderCheckAuthenticationFailed": "Pengesahan penghantar gagal.",
+ "message.senderCheckCaution": "Berhati-hati dengan pautan dan lampiran.",
+ "message.senderCheckShort": "Semak penghantar",
+ "message.senderCheckTitle": "Semakan penghantar memerlukan perhatian",
+ "message.senderCheckViewDetails": "Semak butiran penghantar",
"message.date": "Tarikh",
"message.blockContact": "Sekat kenalan",
"message.star": "Bintangkan",
diff --git a/public/locales/nl.json b/public/locales/nl.json
index bfcedaf..6c4398e 100644
--- a/public/locales/nl.json
+++ b/public/locales/nl.json
@@ -78,6 +78,27 @@
"message.forward": "Doorsturen",
"message.showOriginal": "Origineel tonen",
"message.details": "Details",
+ "message.detailsTitle": "Berichtdetails",
+ "message.detailsMessageSection": "Bericht",
+ "message.detailsAuthentication": "Authenticatie",
+ "message.detailsAuthenticationError": "Kan authenticatie niet controleren.",
+ "message.detailsAuthenticationFailureNote": "Een mislukte controle betekent dat het verzendende domein niet kon worden geverifieerd; het bewijst niet dat het bericht kwaadaardig is.",
+ "message.detailsAuthenticationNote": "Een \"geslaagd\" resultaat bevestigt het verzendende domein, niet de persoon of het bedrijf.",
+ "message.detailsAuthenticationUnavailable": "Door de provider geverifieerde authenticatieresultaten zijn niet beschikbaar voor dit bericht.",
+ "message.detailsChecking": "Authenticatie controleren…",
+ "message.detailsContact": "Opgeslagen contact",
+ "message.detailsDomainMismatch": "Het ondertekeningsdomein verschilt van het domein van de afzender.",
+ "message.detailsEncryption": "Versleuteling",
+ "message.detailsExplanationTitle": "Wat deze resultaten betekenen",
+ "message.detailsFrom": "Oorspronkelijke afzender",
+ "message.detailsReplyTo": "Antwoorden aan",
+ "message.detailsReplyToWarning": "Antwoorden op dit bericht gaan naar een ander adres.",
+ "message.detailsSenderWarning": "De afzendernaam bevat een ander e-mailadres.",
+ "message.senderCheckAuthenticationFailed": "Authenticatie van de afzender is mislukt.",
+ "message.senderCheckCaution": "Wees voorzichtig met links en bijlagen.",
+ "message.senderCheckShort": "Afzender controleren",
+ "message.senderCheckTitle": "Controles van de afzender vragen aandacht",
+ "message.senderCheckViewDetails": "Afzenderdetails bekijken",
"message.date": "Datum",
"message.blockContact": "Contact blokkeren",
"message.star": "Ster toevoegen",
diff --git a/public/locales/pa.json b/public/locales/pa.json
index 5f7a8f2..79fd6c6 100644
--- a/public/locales/pa.json
+++ b/public/locales/pa.json
@@ -78,6 +78,27 @@
"message.forward": "ਅੱਗੇ ਭੇਜੋ",
"message.showOriginal": "ਅਸਲ ਦਿਖਾਓ",
"message.details": "ਵੇਰਵੇ",
+ "message.detailsTitle": "ਸੁਨੇਹੇ ਦੇ ਵੇਰਵੇ",
+ "message.detailsMessageSection": "ਸੁਨੇਹਾ",
+ "message.detailsAuthentication": "ਪ੍ਰਮਾਣਿਕਤਾ",
+ "message.detailsAuthenticationError": "ਪ੍ਰਮਾਣਿਕਤਾ ਦੀ ਜਾਂਚ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕੀ।",
+ "message.detailsAuthenticationFailureNote": "ਅਸਫਲ ਜਾਂਚ ਦਾ ਮਤਲਬ ਹੈ ਕਿ ਭੇਜਣ ਵਾਲੇ ਦਾ ਡੋਮੇਨ ਪੁਸ਼ਟ ਨਹੀਂ ਹੋ ਸਕਿਆ; ਇਹ ਸਾਬਤ ਨਹੀਂ ਕਰਦਾ ਕਿ ਸੁਨੇਹਾ ਨੁਕਸਾਨਦੇਹ ਹੈ।",
+ "message.detailsAuthenticationNote": "\"ਪਾਸ\" ਸਿਰਫ਼ ਭੇਜਣ ਵਾਲੇ ਡੋਮੇਨ ਦੀ ਪੁਸ਼ਟੀ ਕਰਦਾ ਹੈ, ਵਿਅਕਤੀ ਜਾਂ ਕੰਪਨੀ ਦੀ ਨਹੀਂ।",
+ "message.detailsAuthenticationUnavailable": "ਇਸ ਸੁਨੇਹੇ ਲਈ ਪ੍ਰਦਾਤਾ ਵੱਲੋਂ ਪੁਸ਼ਟੀ ਕੀਤੇ ਪ੍ਰਮਾਣਿਕਤਾ ਨਤੀਜੇ ਉਪਲਬਧ ਨਹੀਂ ਹਨ।",
+ "message.detailsChecking": "ਪ੍ਰਮਾਣਿਕਤਾ ਦੀ ਜਾਂਚ ਹੋ ਰਹੀ ਹੈ…",
+ "message.detailsContact": "ਸੰਭਾਲਿਆ ਸੰਪਰਕ",
+ "message.detailsDomainMismatch": "ਦਸਤਖ਼ਤ ਦਾ ਡੋਮੇਨ ਭੇਜਣ ਵਾਲੇ ਦੇ ਡੋਮੇਨ ਤੋਂ ਵੱਖਰਾ ਹੈ।",
+ "message.detailsEncryption": "ਐਨਕ੍ਰਿਪਸ਼ਨ",
+ "message.detailsExplanationTitle": "ਇਹ ਨਤੀਜੇ ਕੀ ਦਰਸਾਉਂਦੇ ਹਨ",
+ "message.detailsFrom": "ਅਸਲ ਭੇਜਣ ਵਾਲਾ",
+ "message.detailsReplyTo": "ਜਵਾਬ ਦਿਓ",
+ "message.detailsReplyToWarning": "ਇਸ ਸੁਨੇਹੇ ਦੇ ਜਵਾਬ ਕਿਸੇ ਹੋਰ ਪਤੇ 'ਤੇ ਜਾਂਦੇ ਹਨ।",
+ "message.detailsSenderWarning": "ਭੇਜਣ ਵਾਲੇ ਦੇ ਨਾਮ ਵਿੱਚ ਇੱਕ ਹੋਰ ਈਮੇਲ ਪਤਾ ਹੈ।",
+ "message.senderCheckAuthenticationFailed": "ਭੇਜਣ ਵਾਲੇ ਦੀ ਪ੍ਰਮਾਣਿਕਤਾ ਅਸਫਲ ਰਹੀ।",
+ "message.senderCheckCaution": "ਲਿੰਕ ਅਤੇ ਅਟੈਚਮੈਂਟਾਂ ਨਾਲ ਸਾਵਧਾਨ ਰਹੋ।",
+ "message.senderCheckShort": "ਭੇਜਣ ਵਾਲਾ ਜਾਂਚੋ",
+ "message.senderCheckTitle": "ਭੇਜਣ ਵਾਲੇ ਦੀ ਜਾਂਚ ਵੱਲ ਧਿਆਨ ਦੇਣ ਦੀ ਲੋੜ ਹੈ",
+ "message.senderCheckViewDetails": "ਭੇਜਣ ਵਾਲੇ ਦੇ ਵੇਰਵੇ ਦੇਖੋ",
"message.date": "ਮਿਤੀ",
"message.blockContact": "ਸੰਪਰਕ ਬਲੌਕ ਕਰੋ",
"message.star": "ਤਾਰਾ ਲਗਾਓ",
diff --git a/public/locales/pl.json b/public/locales/pl.json
index 9b2b9c6..217d99f 100644
--- a/public/locales/pl.json
+++ b/public/locales/pl.json
@@ -84,6 +84,27 @@
"message.forward": "Przekaż dalej",
"message.showOriginal": "Pokaż oryginał",
"message.details": "Szczegóły",
+ "message.detailsTitle": "Szczegóły wiadomości",
+ "message.detailsMessageSection": "Wiadomość",
+ "message.detailsAuthentication": "Uwierzytelnianie",
+ "message.detailsAuthenticationError": "Nie udało się sprawdzić uwierzytelnienia.",
+ "message.detailsAuthenticationFailureNote": "Nieudane sprawdzenie oznacza, że nie udało się zweryfikować domeny wysyłającej; nie dowodzi to, że wiadomość jest złośliwa.",
+ "message.detailsAuthenticationNote": "Wynik „zaliczony” potwierdza domenę wysyłającą, a nie osobę lub firmę.",
+ "message.detailsAuthenticationUnavailable": "Wyniki uwierzytelniania zweryfikowane przez dostawcę nie są dostępne dla tej wiadomości.",
+ "message.detailsChecking": "Sprawdzanie uwierzytelnienia…",
+ "message.detailsContact": "Zapisany kontakt",
+ "message.detailsDomainMismatch": "Domena podpisu różni się od domeny nadawcy.",
+ "message.detailsEncryption": "Szyfrowanie",
+ "message.detailsExplanationTitle": "Co oznaczają te wyniki",
+ "message.detailsFrom": "Oryginalny nadawca",
+ "message.detailsReplyTo": "Odpowiedz do",
+ "message.detailsReplyToWarning": "Odpowiedzi na tę wiadomość trafiają na inny adres.",
+ "message.detailsSenderWarning": "Nazwa nadawcy zawiera inny adres e-mail.",
+ "message.senderCheckAuthenticationFailed": "Uwierzytelnienie nadawcy nie powiodło się.",
+ "message.senderCheckCaution": "Zachowaj ostrożność przy linkach i załącznikach.",
+ "message.senderCheckShort": "Sprawdź nadawcę",
+ "message.senderCheckTitle": "Sprawdzenia nadawcy wymagają uwagi",
+ "message.senderCheckViewDetails": "Sprawdź szczegóły nadawcy",
"message.date": "Data",
"message.blockContact": "Zablokuj kontakt",
"message.star": "Oznacz gwiazdką",
diff --git a/public/locales/pt-BR.json b/public/locales/pt-BR.json
index 0d18e4f..f8ae4ee 100644
--- a/public/locales/pt-BR.json
+++ b/public/locales/pt-BR.json
@@ -81,6 +81,27 @@
"message.forward": "Encaminhar",
"message.showOriginal": "Mostrar original",
"message.details": "Detalhes",
+ "message.detailsTitle": "Detalhes da mensagem",
+ "message.detailsMessageSection": "Mensagem",
+ "message.detailsAuthentication": "Autenticação",
+ "message.detailsAuthenticationError": "Não foi possível verificar a autenticação.",
+ "message.detailsAuthenticationFailureNote": "Uma verificação com falha significa que não foi possível verificar o domínio de envio; isso não prova que a mensagem seja maliciosa.",
+ "message.detailsAuthenticationNote": "Um resultado \"aprovado\" confirma o domínio de envio, não a pessoa ou a empresa.",
+ "message.detailsAuthenticationUnavailable": "Os resultados de autenticação verificados pelo provedor não estão disponíveis para esta mensagem.",
+ "message.detailsChecking": "Verificando a autenticação…",
+ "message.detailsContact": "Contato salvo",
+ "message.detailsDomainMismatch": "O domínio da assinatura é diferente do domínio do remetente.",
+ "message.detailsEncryption": "Criptografia",
+ "message.detailsExplanationTitle": "O que estes resultados significam",
+ "message.detailsFrom": "Remetente original",
+ "message.detailsReplyTo": "Responder para",
+ "message.detailsReplyToWarning": "As respostas a esta mensagem vão para outro endereço.",
+ "message.detailsSenderWarning": "O nome do remetente contém outro endereço de e-mail.",
+ "message.senderCheckAuthenticationFailed": "A autenticação do remetente falhou.",
+ "message.senderCheckCaution": "Tenha cuidado com links e anexos.",
+ "message.senderCheckShort": "Verificar remetente",
+ "message.senderCheckTitle": "As verificações do remetente precisam de atenção",
+ "message.senderCheckViewDetails": "Revisar detalhes do remetente",
"message.date": "Data",
"message.blockContact": "Bloquear contato",
"message.star": "Marcar com estrela",
diff --git a/public/locales/pt-PT.json b/public/locales/pt-PT.json
index 23ef2a1..455780f 100644
--- a/public/locales/pt-PT.json
+++ b/public/locales/pt-PT.json
@@ -81,6 +81,27 @@
"message.forward": "Encaminhar",
"message.showOriginal": "Mostrar original",
"message.details": "Detalhes",
+ "message.detailsTitle": "Detalhes da mensagem",
+ "message.detailsMessageSection": "Mensagem",
+ "message.detailsAuthentication": "Autenticação",
+ "message.detailsAuthenticationError": "Não foi possível verificar a autenticação.",
+ "message.detailsAuthenticationFailureNote": "Uma verificação falhada significa que não foi possível verificar o domínio de envio; isso não prova que a mensagem seja maliciosa.",
+ "message.detailsAuthenticationNote": "Um resultado \"aprovado\" confirma o domínio de envio, não a pessoa ou a empresa.",
+ "message.detailsAuthenticationUnavailable": "Os resultados de autenticação verificados pelo fornecedor não estão disponíveis para esta mensagem.",
+ "message.detailsChecking": "A verificar a autenticação…",
+ "message.detailsContact": "Contacto guardado",
+ "message.detailsDomainMismatch": "O domínio da assinatura é diferente do domínio do remetente.",
+ "message.detailsEncryption": "Encriptação",
+ "message.detailsExplanationTitle": "O que significam estes resultados",
+ "message.detailsFrom": "Remetente original",
+ "message.detailsReplyTo": "Responder a",
+ "message.detailsReplyToWarning": "As respostas a esta mensagem vão para outro endereço.",
+ "message.detailsSenderWarning": "O nome do remetente contém outro endereço de e-mail.",
+ "message.senderCheckAuthenticationFailed": "A autenticação do remetente falhou.",
+ "message.senderCheckCaution": "Tenha cuidado com ligações e anexos.",
+ "message.senderCheckShort": "Verificar remetente",
+ "message.senderCheckTitle": "As verificações do remetente requerem atenção",
+ "message.senderCheckViewDetails": "Rever detalhes do remetente",
"message.date": "Data",
"message.blockContact": "Bloquear contacto",
"message.star": "Marcar com estrela",
diff --git a/public/locales/ru.json b/public/locales/ru.json
index 7fc447a..11ab0b3 100644
--- a/public/locales/ru.json
+++ b/public/locales/ru.json
@@ -84,6 +84,27 @@
"message.forward": "Переслать",
"message.showOriginal": "Показать оригинал",
"message.details": "Сведения",
+ "message.detailsTitle": "Сведения о сообщении",
+ "message.detailsMessageSection": "Сообщение",
+ "message.detailsAuthentication": "Аутентификация",
+ "message.detailsAuthenticationError": "Не удалось проверить аутентификацию.",
+ "message.detailsAuthenticationFailureNote": "Неудачная проверка означает, что домен отправителя не удалось подтвердить; это не доказывает, что сообщение вредоносное.",
+ "message.detailsAuthenticationNote": "Результат «пройдено» подтверждает домен отправителя, но не человека или компанию.",
+ "message.detailsAuthenticationUnavailable": "Проверенные провайдером результаты аутентификации недоступны для этого сообщения.",
+ "message.detailsChecking": "Проверка аутентификации…",
+ "message.detailsContact": "Сохранённый контакт",
+ "message.detailsDomainMismatch": "Домен подписи отличается от домена отправителя.",
+ "message.detailsEncryption": "Шифрование",
+ "message.detailsExplanationTitle": "Что означают эти результаты",
+ "message.detailsFrom": "Исходный отправитель",
+ "message.detailsReplyTo": "Ответить на",
+ "message.detailsReplyToWarning": "Ответы на это сообщение уходят на другой адрес.",
+ "message.detailsSenderWarning": "Имя отправителя содержит другой адрес электронной почты.",
+ "message.senderCheckAuthenticationFailed": "Аутентификация отправителя не пройдена.",
+ "message.senderCheckCaution": "Будьте осторожны со ссылками и вложениями.",
+ "message.senderCheckShort": "Проверить отправителя",
+ "message.senderCheckTitle": "Проверки отправителя требуют внимания",
+ "message.senderCheckViewDetails": "Проверить сведения об отправителе",
"message.date": "Дата",
"message.blockContact": "Заблокировать контакт",
"message.star": "Пометить",
diff --git a/public/locales/si.json b/public/locales/si.json
index e9f0493..ccb47d8 100644
--- a/public/locales/si.json
+++ b/public/locales/si.json
@@ -78,6 +78,27 @@
"message.forward": "යොමු කරන්න",
"message.showOriginal": "මුල් පිටපත පෙන්වන්න",
"message.details": "විස්තර",
+ "message.detailsTitle": "පණිවිඩ විස්තර",
+ "message.detailsMessageSection": "පණිවිඩය",
+ "message.detailsAuthentication": "සත්‍යාපනය",
+ "message.detailsAuthenticationError": "සත්‍යාපනය පරීක්ෂා කළ නොහැකි විය.",
+ "message.detailsAuthenticationFailureNote": "අසාර්ථක පරීක්ෂාවක් යනු යවන වසම තහවුරු කළ නොහැකි බවයි; එය පණිවිඩය හානිකර බව ඔප්පු නොකරයි.",
+ "message.detailsAuthenticationNote": "\"සමත්\" යනු යවන වසම පමණක් තහවුරු කරයි, පුද්ගලයා හෝ සමාගම නොවේ.",
+ "message.detailsAuthenticationUnavailable": "මෙම පණිවිඩය සඳහා සේවා සපයන්නා විසින් සත්‍යාපනය කළ ප්‍රතිඵල නොමැත.",
+ "message.detailsChecking": "සත්‍යාපනය පරීක්ෂා කරමින්…",
+ "message.detailsContact": "සුරකින ලද සම්බන්ධතාව",
+ "message.detailsDomainMismatch": "අත්සන් වසම යවන්නාගේ වසමට වඩා වෙනස් ය.",
+ "message.detailsEncryption": "සංකේතනය",
+ "message.detailsExplanationTitle": "මෙම ප්‍රතිඵලවල අර්ථය",
+ "message.detailsFrom": "මුල් යවන්නා",
+ "message.detailsReplyTo": "පිළිතුරු දෙන්න",
+ "message.detailsReplyToWarning": "මෙම පණිවිඩයට පිළිතුරු වෙනත් ලිපිනයකට යයි.",
+ "message.detailsSenderWarning": "යවන්නාගේ නමෙහි වෙනත් ඊමේල් ලිපිනයක් ඇත.",
+ "message.senderCheckAuthenticationFailed": "යවන්නාගේ සත්‍යාපනය අසාර්ථක විය.",
+ "message.senderCheckCaution": "සබැඳි සහ ඇමුණුම් සමඟ ප්‍රවේශම් වන්න.",
+ "message.senderCheckShort": "යවන්නා පරීක්ෂා කරන්න",
+ "message.senderCheckTitle": "යවන්නාගේ පරීක්ෂණවලට අවධානය අවශ්‍යයි",
+ "message.senderCheckViewDetails": "යවන්නාගේ විස්තර සමාලෝචනය කරන්න",
"message.date": "දිනය",
"message.blockContact": "සම්බන්ධතාව අවහිර කරන්න",
"message.star": "තරු ලකුණු කරන්න",
diff --git a/public/locales/sw.json b/public/locales/sw.json
index 23f83ff..6ba68dd 100644
--- a/public/locales/sw.json
+++ b/public/locales/sw.json
@@ -78,6 +78,27 @@
"message.forward": "Sambaza",
"message.showOriginal": "Onyesha asili",
"message.details": "Maelezo",
+ "message.detailsTitle": "Maelezo ya ujumbe",
+ "message.detailsMessageSection": "Ujumbe",
+ "message.detailsAuthentication": "Uthibitishaji",
+ "message.detailsAuthenticationError": "Imeshindwa kukagua uthibitishaji.",
+ "message.detailsAuthenticationFailureNote": "Ukaguzi ulioshindikana unamaanisha kikoa cha kutuma hakikuweza kuthibitishwa; hilo halithibitishi kuwa ujumbe ni hatari.",
+ "message.detailsAuthenticationNote": "Matokeo ya \"imefaulu\" huthibitisha kikoa cha kutuma, si mtu au kampuni.",
+ "message.detailsAuthenticationUnavailable": "Matokeo ya uthibitishaji yaliyothibitishwa na mtoa huduma hayapatikani kwa ujumbe huu.",
+ "message.detailsChecking": "Inakagua uthibitishaji…",
+ "message.detailsContact": "Anwani iliyohifadhiwa",
+ "message.detailsDomainMismatch": "Kikoa cha sahihi kinatofautiana na kikoa cha mtumaji.",
+ "message.detailsEncryption": "Usimbaji fiche",
+ "message.detailsExplanationTitle": "Maana ya matokeo haya",
+ "message.detailsFrom": "Mtumaji halisi",
+ "message.detailsReplyTo": "Jibu kwa",
+ "message.detailsReplyToWarning": "Majibu ya ujumbe huu huenda kwa anwani nyingine.",
+ "message.detailsSenderWarning": "Jina la mtumaji lina anwani nyingine ya barua pepe.",
+ "message.senderCheckAuthenticationFailed": "Uthibitishaji wa mtumaji umeshindwa.",
+ "message.senderCheckCaution": "Kuwa mwangalifu na viungo na viambatisho.",
+ "message.senderCheckShort": "Angalia mtumaji",
+ "message.senderCheckTitle": "Ukaguzi wa mtumaji unahitaji uangalifu",
+ "message.senderCheckViewDetails": "Kagua maelezo ya mtumaji",
"message.date": "Tarehe",
"message.blockContact": "Zuia mwasiliani",
"message.star": "Tia nyota",
diff --git a/public/locales/ta.json b/public/locales/ta.json
index f309935..2d622b8 100644
--- a/public/locales/ta.json
+++ b/public/locales/ta.json
@@ -78,6 +78,27 @@
"message.forward": "முன்னனுப்பு",
"message.showOriginal": "அசலைக் காட்டு",
"message.details": "விவரங்கள்",
+ "message.detailsTitle": "செய்தி விவரங்கள்",
+ "message.detailsMessageSection": "செய்தி",
+ "message.detailsAuthentication": "அங்கீகாரம்",
+ "message.detailsAuthenticationError": "அங்கீகாரத்தைச் சரிபார்க்க முடியவில்லை.",
+ "message.detailsAuthenticationFailureNote": "தோல்வியடைந்த சரிபார்ப்பு என்பது அனுப்பும் டொமைனை உறுதிப்படுத்த முடியவில்லை என்பதாகும்; இது செய்தி தீங்கிழைக்கக்கூடியது என்பதை நிரூபிக்காது.",
+ "message.detailsAuthenticationNote": "\"தேர்ச்சி\" என்பது அனுப்பும் டொமைனை மட்டுமே உறுதிப்படுத்தும், நபர் அல்லது நிறுவனத்தை அல்ல.",
+ "message.detailsAuthenticationUnavailable": "இந்தச் செய்திக்கு வழங்குநர் சரிபார்த்த அங்கீகார முடிவுகள் கிடைக்கவில்லை.",
+ "message.detailsChecking": "அங்கீகாரம் சரிபார்க்கப்படுகிறது…",
+ "message.detailsContact": "சேமிக்கப்பட்ட தொடர்பு",
+ "message.detailsDomainMismatch": "கையொப்ப டொமைன் அனுப்புநரின் டொமைனிலிருந்து வேறுபடுகிறது.",
+ "message.detailsEncryption": "மறையாக்கம்",
+ "message.detailsExplanationTitle": "இந்த முடிவுகளின் பொருள்",
+ "message.detailsFrom": "அசல் அனுப்புநர்",
+ "message.detailsReplyTo": "பதிலளிக்க",
+ "message.detailsReplyToWarning": "இந்தச் செய்திக்கான பதில்கள் வேறு முகவரிக்குச் செல்லும்.",
+ "message.detailsSenderWarning": "அனுப்புநரின் பெயரில் வேறு மின்னஞ்சல் முகவரி உள்ளது.",
+ "message.senderCheckAuthenticationFailed": "அனுப்புநரின் அங்கீகாரம் தோல்வியடைந்தது.",
+ "message.senderCheckCaution": "இணைப்புகள் மற்றும் இணைக்கப்பட்ட கோப்புகளுடன் கவனமாக இருங்கள்.",
+ "message.senderCheckShort": "அனுப்புநரைச் சரிபார்க்கவும்",
+ "message.senderCheckTitle": "அனுப்புநர் சரிபார்ப்புகளுக்கு கவனம் தேவை",
+ "message.senderCheckViewDetails": "அனுப்புநர் விவரங்களை மதிப்பாய்வு செய்க",
"message.date": "தேதி",
"message.blockContact": "தொடர்பைத் தடு",
"message.star": "நட்சத்திரமிடு",
diff --git a/public/locales/te.json b/public/locales/te.json
index bca90db..f5eab53 100644
--- a/public/locales/te.json
+++ b/public/locales/te.json
@@ -78,6 +78,27 @@
"message.forward": "ఫార్వర్డ్ చేయండి",
"message.showOriginal": "అసలు సందేశాన్ని చూపించు",
"message.details": "వివరాలు",
+ "message.detailsTitle": "సందేశ వివరాలు",
+ "message.detailsMessageSection": "సందేశం",
+ "message.detailsAuthentication": "ప్రామాణీకరణ",
+ "message.detailsAuthenticationError": "ప్రామాణీకరణను తనిఖీ చేయలేకపోయాం.",
+ "message.detailsAuthenticationFailureNote": "తనిఖీ విఫలమైంది అంటే పంపే డొమైన్ ధృవీకరించబడలేదు; ఇది సందేశం హానికరమని రుజువు చేయదు.",
+ "message.detailsAuthenticationNote": "\"పాస్\" పంపే డొమైన్‌ను మాత్రమే నిర్ధారిస్తుంది, వ్యక్తి లేదా కంపెనీని కాదు.",
+ "message.detailsAuthenticationUnavailable": "ఈ సందేశానికి ప్రదాత ధృవీకరించిన ప్రామాణీకరణ ఫలితాలు అందుబాటులో లేవు.",
+ "message.detailsChecking": "ప్రామాణీకరణను తనిఖీ చేస్తోంది…",
+ "message.detailsContact": "సేవ్ చేసిన పరిచయం",
+ "message.detailsDomainMismatch": "సంతకం డొమైన్ పంపినవారి డొమైన్‌కు భిన్నంగా ఉంది.",
+ "message.detailsEncryption": "ఎన్‌క్రిప్షన్",
+ "message.detailsExplanationTitle": "ఈ ఫలితాల అర్థం",
+ "message.detailsFrom": "అసలు పంపినవారు",
+ "message.detailsReplyTo": "దీనికి ప్రత్యుత్తరం",
+ "message.detailsReplyToWarning": "ఈ సందేశానికి ప్రత్యుత్తరాలు మరొక చిరునామాకు వెళ్తాయి.",
+ "message.detailsSenderWarning": "పంపినవారి పేరులో మరొక ఇమెయిల్ చిరునామా ఉంది.",
+ "message.senderCheckAuthenticationFailed": "పంపినవారి ప్రామాణీకరణ విఫలమైంది.",
+ "message.senderCheckCaution": "లింక్‌లు మరియు జోడింపులతో జాగ్రత్తగా ఉండండి.",
+ "message.senderCheckShort": "పంపినవారిని తనిఖీ చేయండి",
+ "message.senderCheckTitle": "పంపినవారి తనిఖీలకు శ్రద్ధ అవసరం",
+ "message.senderCheckViewDetails": "పంపినవారి వివరాలను సమీక్షించండి",
"message.date": "తేదీ",
"message.blockContact": "కాంటాక్ట్‌ను బ్లాక్ చేయండి",
"message.star": "నక్షత్రం పెట్టండి",
diff --git a/public/locales/th.json b/public/locales/th.json
index 3d6e087..842a72a 100644
--- a/public/locales/th.json
+++ b/public/locales/th.json
@@ -78,6 +78,27 @@
"message.forward": "ส่งต่อ",
"message.showOriginal": "แสดงต้นฉบับ",
"message.details": "รายละเอียด",
+ "message.detailsTitle": "รายละเอียดข้อความ",
+ "message.detailsMessageSection": "ข้อความ",
+ "message.detailsAuthentication": "การรับรองความถูกต้อง",
+ "message.detailsAuthenticationError": "ไม่สามารถตรวจสอบการรับรองความถูกต้องได้",
+ "message.detailsAuthenticationFailureNote": "การตรวจสอบล้มเหลวหมายความว่าไม่สามารถยืนยันโดเมนที่ส่งได้ แต่ไม่ได้พิสูจน์ว่าข้อความเป็นอันตราย",
+ "message.detailsAuthenticationNote": "\"ผ่าน\" ยืนยันเฉพาะโดเมนที่ส่ง ไม่ใช่บุคคลหรือบริษัท",
+ "message.detailsAuthenticationUnavailable": "ผลการรับรองความถูกต้องที่ผู้ให้บริการตรวจสอบแล้วไม่พร้อมใช้งานสำหรับข้อความนี้",
+ "message.detailsChecking": "กำลังตรวจสอบการรับรองความถูกต้อง…",
+ "message.detailsContact": "ผู้ติดต่อที่บันทึกไว้",
+ "message.detailsDomainMismatch": "โดเมนที่ลงนามแตกต่างจากโดเมนของผู้ส่ง",
+ "message.detailsEncryption": "การเข้ารหัส",
+ "message.detailsExplanationTitle": "ผลลัพธ์เหล่านี้หมายถึงอะไร",
+ "message.detailsFrom": "ผู้ส่งต้นฉบับ",
+ "message.detailsReplyTo": "ตอบกลับถึง",
+ "message.detailsReplyToWarning": "การตอบกลับข้อความนี้จะไปยังที่อยู่อื่น",
+ "message.detailsSenderWarning": "ชื่อผู้ส่งมีที่อยู่อีเมลอื่น",
+ "message.senderCheckAuthenticationFailed": "การรับรองความถูกต้องของผู้ส่งล้มเหลว",
+ "message.senderCheckCaution": "โปรดระวังลิงก์และไฟล์แนบ",
+ "message.senderCheckShort": "ตรวจสอบผู้ส่ง",
+ "message.senderCheckTitle": "การตรวจสอบผู้ส่งต้องได้รับความสนใจ",
+ "message.senderCheckViewDetails": "ตรวจสอบรายละเอียดผู้ส่ง",
"message.date": "วันที่",
"message.blockContact": "บล็อกผู้ติดต่อ",
"message.star": "ติดดาว",
diff --git a/public/locales/tr.json b/public/locales/tr.json
index c1f1d5d..ecab574 100644
--- a/public/locales/tr.json
+++ b/public/locales/tr.json
@@ -77,6 +77,27 @@
"message.forward": "İlet",
"message.showOriginal": "Orijinali göster",
"message.details": "Ayrıntılar",
+ "message.detailsTitle": "İleti ayrıntıları",
+ "message.detailsMessageSection": "İleti",
+ "message.detailsAuthentication": "Kimlik doğrulama",
+ "message.detailsAuthenticationError": "Kimlik doğrulama kontrol edilemedi.",
+ "message.detailsAuthenticationFailureNote": "Başarısız bir kontrol, gönderen alan adının doğrulanamadığı anlamına gelir; iletinin kötü niyetli olduğunu kanıtlamaz.",
+ "message.detailsAuthenticationNote": "\"Geçti\" sonucu, kişiyi veya şirketi değil gönderen alan adını doğrular.",
+ "message.detailsAuthenticationUnavailable": "Sağlayıcı tarafından doğrulanan kimlik doğrulama sonuçları bu ileti için kullanılamıyor.",
+ "message.detailsChecking": "Kimlik doğrulama kontrol ediliyor…",
+ "message.detailsContact": "Kayıtlı kişi",
+ "message.detailsDomainMismatch": "İmza alan adı, gönderenin alan adından farklı.",
+ "message.detailsEncryption": "Şifreleme",
+ "message.detailsExplanationTitle": "Bu sonuçlar ne anlama gelir",
+ "message.detailsFrom": "Özgün gönderen",
+ "message.detailsReplyTo": "Yanıt adresi",
+ "message.detailsReplyToWarning": "Bu iletiye verilen yanıtlar farklı bir adrese gider.",
+ "message.detailsSenderWarning": "Gönderen adı farklı bir e-posta adresi içeriyor.",
+ "message.senderCheckAuthenticationFailed": "Gönderen kimlik doğrulaması başarısız oldu.",
+ "message.senderCheckCaution": "Bağlantılara ve ek dosyalara karşı dikkatli olun.",
+ "message.senderCheckShort": "Göndereni kontrol et",
+ "message.senderCheckTitle": "Gönderen kontrolleri dikkat gerektiriyor",
+ "message.senderCheckViewDetails": "Gönderen ayrıntılarını incele",
"message.date": "Tarih",
"message.blockContact": "Kişiyi engelle",
"message.star": "Yıldızla",
diff --git a/public/locales/uk.json b/public/locales/uk.json
index 0198855..798dc6a 100644
--- a/public/locales/uk.json
+++ b/public/locales/uk.json
@@ -84,6 +84,27 @@
"message.forward": "Переслати",
"message.showOriginal": "Показати оригінал",
"message.details": "Відомості",
+ "message.detailsTitle": "Відомості про повідомлення",
+ "message.detailsMessageSection": "Повідомлення",
+ "message.detailsAuthentication": "Автентифікація",
+ "message.detailsAuthenticationError": "Не вдалося перевірити автентифікацію.",
+ "message.detailsAuthenticationFailureNote": "Невдала перевірка означає, що домен відправника не вдалося підтвердити; це не доводить, що повідомлення шкідливе.",
+ "message.detailsAuthenticationNote": "Результат «пройдено» підтверджує домен відправника, а не людину чи компанію.",
+ "message.detailsAuthenticationUnavailable": "Перевірені постачальником результати автентифікації недоступні для цього повідомлення.",
+ "message.detailsChecking": "Перевірка автентифікації…",
+ "message.detailsContact": "Збережений контакт",
+ "message.detailsDomainMismatch": "Домен підпису відрізняється від домену відправника.",
+ "message.detailsEncryption": "Шифрування",
+ "message.detailsExplanationTitle": "Що означають ці результати",
+ "message.detailsFrom": "Оригінальний відправник",
+ "message.detailsReplyTo": "Відповісти на",
+ "message.detailsReplyToWarning": "Відповіді на це повідомлення надходять на іншу адресу.",
+ "message.detailsSenderWarning": "Ім'я відправника містить іншу адресу електронної пошти.",
+ "message.senderCheckAuthenticationFailed": "Автентифікацію відправника не пройдено.",
+ "message.senderCheckCaution": "Будьте обережні з посиланнями та вкладеннями.",
+ "message.senderCheckShort": "Перевірити відправника",
+ "message.senderCheckTitle": "Перевірки відправника потребують уваги",
+ "message.senderCheckViewDetails": "Переглянути відомості про відправника",
"message.date": "Дата",
"message.blockContact": "Заблокувати контакт",
"message.star": "Позначити зірочкою",
diff --git a/public/locales/ur.json b/public/locales/ur.json
index 74190af..639d1a0 100644
--- a/public/locales/ur.json
+++ b/public/locales/ur.json
@@ -78,6 +78,27 @@
"message.forward": "آگے بھیجیں",
"message.showOriginal": "اصل دکھائیں",
"message.details": "تفصیلات",
+ "message.detailsTitle": "پیغام کی تفصیلات",
+ "message.detailsMessageSection": "پیغام",
+ "message.detailsAuthentication": "توثیق",
+ "message.detailsAuthenticationError": "توثیق کی جانچ نہیں ہو سکی۔",
+ "message.detailsAuthenticationFailureNote": "ناکام جانچ کا مطلب ہے کہ بھیجنے والے کا ڈومین تصدیق نہیں ہو سکا؛ یہ ثابت نہیں کرتا کہ پیغام نقصان دہ ہے۔",
+ "message.detailsAuthenticationNote": "\"پاس\" صرف بھیجنے والے ڈومین کی تصدیق کرتا ہے، شخص یا کمپنی کی نہیں۔",
+ "message.detailsAuthenticationUnavailable": "اس پیغام کے لیے فراہم کنندہ کی تصدیق شدہ توثیق کے نتائج دستیاب نہیں ہیں۔",
+ "message.detailsChecking": "توثیق کی جانچ ہو رہی ہے…",
+ "message.detailsContact": "محفوظ رابطہ",
+ "message.detailsDomainMismatch": "دستخط کا ڈومین بھیجنے والے کے ڈومین سے مختلف ہے۔",
+ "message.detailsEncryption": "خفیہ کاری",
+ "message.detailsExplanationTitle": "ان نتائج کا کیا مطلب ہے",
+ "message.detailsFrom": "اصل بھیجنے والا",
+ "message.detailsReplyTo": "جواب دیں",
+ "message.detailsReplyToWarning": "اس پیغام کے جوابات کسی دوسرے پتے پر جاتے ہیں۔",
+ "message.detailsSenderWarning": "بھیجنے والے کے نام میں ایک مختلف ای میل پتہ ہے۔",
+ "message.senderCheckAuthenticationFailed": "بھیجنے والے کی توثیق ناکام ہو گئی۔",
+ "message.senderCheckCaution": "روابط اور منسلکات سے محتاط رہیں۔",
+ "message.senderCheckShort": "بھیجنے والے کی جانچ کریں",
+ "message.senderCheckTitle": "بھیجنے والے کی جانچ پر توجہ درکار ہے",
+ "message.senderCheckViewDetails": "بھیجنے والے کی تفصیلات کا جائزہ لیں",
"message.date": "تاریخ",
"message.blockContact": "رابطہ بلاک کریں",
"message.star": "ستارہ لگائیں",
diff --git a/public/locales/vi.json b/public/locales/vi.json
index e012148..1d189d4 100644
--- a/public/locales/vi.json
+++ b/public/locales/vi.json
@@ -75,6 +75,27 @@
"message.forward": "Chuyển tiếp",
"message.showOriginal": "Hiện thư gốc",
"message.details": "Chi tiết",
+ "message.detailsTitle": "Chi tiết thư",
+ "message.detailsMessageSection": "Thư",
+ "message.detailsAuthentication": "Xác thực",
+ "message.detailsAuthenticationError": "Không thể kiểm tra xác thực.",
+ "message.detailsAuthenticationFailureNote": "Kiểm tra không thành công nghĩa là không thể xác minh tên miền gửi; điều đó không chứng minh thư là độc hại.",
+ "message.detailsAuthenticationNote": "Kết quả \"đạt\" xác nhận tên miền gửi, không xác nhận người hoặc công ty.",
+ "message.detailsAuthenticationUnavailable": "Kết quả xác thực do nhà cung cấp xác minh không có sẵn cho thư này.",
+ "message.detailsChecking": "Đang kiểm tra xác thực…",
+ "message.detailsContact": "Liên hệ đã lưu",
+ "message.detailsDomainMismatch": "Tên miền ký khác với tên miền của người gửi.",
+ "message.detailsEncryption": "Mã hóa",
+ "message.detailsExplanationTitle": "Ý nghĩa của các kết quả này",
+ "message.detailsFrom": "Người gửi gốc",
+ "message.detailsReplyTo": "Trả lời tới",
+ "message.detailsReplyToWarning": "Thư trả lời sẽ đi đến một địa chỉ khác.",
+ "message.detailsSenderWarning": "Tên người gửi chứa một địa chỉ email khác.",
+ "message.senderCheckAuthenticationFailed": "Xác thực người gửi không thành công.",
+ "message.senderCheckCaution": "Hãy cẩn thận với liên kết và tệp đính kèm.",
+ "message.senderCheckShort": "Kiểm tra người gửi",
+ "message.senderCheckTitle": "Cần chú ý đến kiểm tra người gửi",
+ "message.senderCheckViewDetails": "Xem lại chi tiết người gửi",
"message.date": "Ngày",
"message.blockContact": "Chặn liên hệ",
"message.star": "Gắn sao",
diff --git a/public/locales/zh-CN.json b/public/locales/zh-CN.json
index 846bc2e..878f36a 100644
--- a/public/locales/zh-CN.json
+++ b/public/locales/zh-CN.json
@@ -75,6 +75,27 @@
"message.forward": "转发",
"message.showOriginal": "显示原始邮件",
"message.details": "详情",
+ "message.detailsTitle": "邮件详情",
+ "message.detailsMessageSection": "邮件",
+ "message.detailsAuthentication": "身份验证",
+ "message.detailsAuthenticationError": "无法检查身份验证。",
+ "message.detailsAuthenticationFailureNote": "检查失败意味着无法验证发件域名,并不证明邮件具有恶意。",
+ "message.detailsAuthenticationNote": "“通过”仅确认发送域名,不能确认发件人或公司。",
+ "message.detailsAuthenticationUnavailable": "此邮件没有可用的服务商验证的身份验证结果。",
+ "message.detailsChecking": "正在检查身份验证…",
+ "message.detailsContact": "已保存的联系人",
+ "message.detailsDomainMismatch": "签名域名与发件人域名不同。",
+ "message.detailsEncryption": "加密",
+ "message.detailsExplanationTitle": "这些结果的含义",
+ "message.detailsFrom": "原始发件人",
+ "message.detailsReplyTo": "回复至",
+ "message.detailsReplyToWarning": "对此邮件的回复将发送到其他地址。",
+ "message.detailsSenderWarning": "发件人名称包含另一个电子邮件地址。",
+ "message.senderCheckAuthenticationFailed": "发件人身份验证失败。",
+ "message.senderCheckCaution": "请谨慎对待链接和附件。",
+ "message.senderCheckShort": "检查发件人",
+ "message.senderCheckTitle": "发件人检查需要关注",
+ "message.senderCheckViewDetails": "查看发件人详情",
"message.date": "日期",
"message.blockContact": "屏蔽联系人",
"message.star": "加星标",
diff --git a/src/app/(dashboard)/inbox/[messageId]/page.tsx b/src/app/(dashboard)/inbox/[messageId]/page.tsx
index 9a3eb14..058f6b0 100644
--- a/src/app/(dashboard)/inbox/[messageId]/page.tsx
+++ b/src/app/(dashboard)/inbox/[messageId]/page.tsx
@@ -22,6 +22,8 @@ import { ScheduledSendBanner } from "@/components/messages/scheduled-send-banner
import { formatScheduledSendTime } from "@/components/messages/scheduled-send-utils";
import { QuotedEmailToggle } from "@/components/messages/quoted-email-toggle";
import { ThreadMessageActions } from "@/components/messages/thread-message-actions";
+import { MessageDetailsPanel } from "@/components/messages/message-details-panel";
+import { SenderCheckNotice } from "@/components/messages/sender-check-notice";
import { useMessageThread } from "@/components/messages/use-message-thread";
import { useLatestMessagesFirst } from "@/components/messages/use-latest-messages-first";
import { useMessageListVisibility } from "@/components/messages/message-list-visibility";
@@ -264,9 +266,6 @@ export default function MessageDetailPage() {
</p>
<div className="sm:hidden flex items-center gap-2 text-xs text-neutral-500">
<span>{messageDate(false)}</span>
- <button type="button" className="text-blue-600 hover:underline" aria-expanded={detailsOpen} onClick={() => setDetailsOpen((open) => !open)}>
- {t("message.details")}
- </button>
</div>
{ccEntries.length > 0 && (
<p className="text-xs text-neutral-500">
@@ -288,16 +287,24 @@ export default function MessageDetailPage() {
ownAddress={ownAddress}
ownAddresses={ownAddresses}
starOnly={!thread.messages.some((threadMessage) => threadMessage.id === message.id) || !thread.messages.some((threadMessage) => threadMessage.id !== message.id)}
+ detailsOpen={detailsOpen}
+ onToggleDetails={() => setDetailsOpen((open) => !open)}
/>
</div>
- {detailsOpen && (
- <dl className="sm:hidden w-full space-y-0.5 break-words pt-2 text-xs text-neutral-500">
- <div><dt className="inline font-medium">{t("source.from")}:</dt> <dd className="inline">{fromName} &lt;{fromAddress}&gt;</dd></div>
- <div><dt className="inline font-medium">{t("source.to")}:</dt> <dd className="inline">{toEntries.join(", ")}</dd></div>
- <div><dt className="inline font-medium">{t("message.date")}:</dt> <dd className="inline">{messageDate(true)}</dd></div>
- </dl>
- )}
</div>
+ <div className="mb-4 px-4 sm:px-0 sm:pl-4 sm:pr-4">
+ <SenderCheckNotice
+ message={message}
+ detailsOpen={detailsOpen}
+ onViewDetails={() => setDetailsOpen((open) => !open)}
+ announce
+ />
+ </div>
+ {detailsOpen && (
+ <div className="mb-4 px-4 sm:px-0 sm:pl-4 sm:pr-4">
+ <MessageDetailsPanel message={message} onClose={() => setDetailsOpen(false)} />
+ </div>
+ )}
{scheduledAt && <div className="px-4 sm:px-0 sm:pl-10"><ScheduledSendBanner messageId={message.id} scheduledAt={scheduledAt} /></div>}
<div className="prose max-w-none px-4 text-neutral-900 sm:px-0 sm:pl-16">
{htmlBody ? (
diff --git a/src/app/api/messages/[messageId]/authentication/route.ts b/src/app/api/messages/[messageId]/authentication/route.ts
new file mode 100644
index 0000000..6adf042
--- /dev/null
+++ b/src/app/api/messages/[messageId]/authentication/route.ts
@@ -0,0 +1,55 @@
+import { eq } from "drizzle-orm";
+import { NextResponse } from "next/server";
+import { getDb } from "@/db";
+import { messages } from "@/db/schema";
+import { getCurrentUser } from "@/lib/auth/cookies";
+import { getEnv } from "@/lib/cloudflare";
+import { getEmailAddress } from "@/lib/email/address";
+import { readSesAuthentication } from "@/lib/email/provider-trace";
+import { getMailboxAccessLevel } from "@/lib/mailboxes/access";
+import type { MessageAuthenticationResponse } from "@/lib/email/authentication-types";
+import type { MessageAuthenticationRouteParams } from "./types";
+
+/** Authentication headers are in the leading header block, so a partial read is enough. */
+const HEADER_SCAN_BYTES = 64 * 1024;
+
+export async function GET(request: Request, { params }: MessageAuthenticationRouteParams) {
+ const env = getEnv();
+ const user = await getCurrentUser(env, request);
+ if (!user) return NextResponse.json({ error: "Unauthorized" }, { status: 401 });
+
+ const { messageId } = await params;
+ const db = getDb(env);
+ const [message] = await db
+ .select({
+ mailboxId: messages.mailboxId,
+ direction: messages.direction,
+ fromAddr: messages.fromAddr,
+ rawR2Key: messages.rawR2Key,
+ })
+ .from(messages)
+ .where(eq(messages.id, messageId))
+ .limit(1);
+ if (!message?.mailboxId) return NextResponse.json({ error: "Not found" }, { status: 404 });
+
+ const access = await getMailboxAccessLevel(db, user, message.mailboxId);
+ if (!access?.canRead) return NextResponse.json({ error: "Not found" }, { status: 404 });
+
+ const unavailable = (reason: Extract<MessageAuthenticationResponse, { available: false }>["reason"]) => {
+ const response: MessageAuthenticationResponse = { available: false, reason };
+ return NextResponse.json(response, { headers: { "Cache-Control": "private, no-store" } });
+ };
+
+ // Authentication results describe how a received message reached us; a sent
+ // message has no equivalent provider trace.
+ if (message.direction !== "inbound") return unavailable("outbound");
+ if (!message.rawR2Key) return unavailable("not-retained");
+
+ const object = await env.BUCKET.get(message.rawR2Key, { range: { offset: 0, length: HEADER_SCAN_BYTES } });
+ if (!object) return unavailable("unavailable");
+ const authentication = readSesAuthentication(await object.arrayBuffer(), getEmailAddress(message.fromAddr));
+ if (!authentication) return unavailable("untrusted");
+
+ const response: MessageAuthenticationResponse = { available: true, ...authentication };
+ return NextResponse.json(response, { headers: { "Cache-Control": "private, no-store" } });
+}
diff --git a/src/app/api/messages/[messageId]/authentication/types.d.ts b/src/app/api/messages/[messageId]/authentication/types.d.ts
new file mode 100644
index 0000000..7e74d06
--- /dev/null
+++ b/src/app/api/messages/[messageId]/authentication/types.d.ts
@@ -0,0 +1,3 @@
+export type MessageAuthenticationRouteParams = {
+ params: Promise<{ messageId: string }>;
+};
diff --git a/src/components/messages/conversation-thread.tsx b/src/components/messages/conversation-thread.tsx
index 76218ad..48f9737 100644
--- a/src/components/messages/conversation-thread.tsx
+++ b/src/components/messages/conversation-thread.tsx
@@ -14,6 +14,8 @@ import { useLanguage } from "@/components/language-provider";
import { cn } from "@/lib/utils";
import type { ConversationMessageCardProps, ConversationThreadProps } from "./conversation-thread-types";
import { ThreadMessageActions } from "./thread-message-actions";
+import { MessageDetailsPanel } from "./message-details-panel";
+import { SenderCheckBadge, SenderCheckNotice } from "./sender-check-notice";
import { MessageOpenStatus } from "./message-open-status";
import { MessageFollowUpStatus } from "@/components/follow-ups/message-follow-up-status";
import {
@@ -187,6 +189,7 @@ export function ConversationMessageCard({
{!expanded && (
<span className={clsx(!locallyRead ? "font-semibold" : "text-neutral-500", "block truncate text-[13px]")}>{message.snippet || t("thread.noPreview")}</span>
)}
+ {!expanded && <SenderCheckBadge message={message} />}
</span>
</button>
<span className={clsx(!locallyRead ? "font-semibold" : "", "shrink-0 items-center gap-2 text-xs mr-2 mt-2", "hidden sm:flex")}>
@@ -199,22 +202,27 @@ export function ConversationMessageCard({
ownAddress={ownAddress}
ownAddresses={ownAddresses}
starOnly={!expanded}
+ detailsOpen={detailsOpen}
+ onToggleDetails={() => setDetailsOpen((open) => !open)}
/>
<div className={clsx("sm:hidden flex w-full items-center gap-2 pl-12 text-xs", locallyRead ? "text-neutral-500" : "font-semibold text-neutral-700")}>
{attachments.length > 0 && <Paperclip className="h-3.5 w-3.5" aria-label={t("thread.attachmentCount", { count: attachments.length })} />}
<span>{formatUserDate(message.createdAt, { month: "short", day: "2-digit", year: "numeric" })}</span>
- <button type="button" className="text-blue-600 hover:underline" aria-expanded={detailsOpen} onClick={() => setDetailsOpen((open) => !open)}>
- {t("message.details")}
- </button>
</div>
- {detailsOpen && (
- <dl className="sm:hidden w-full space-y-0.5 break-words pt-2 text-xs text-neutral-500">
- <div><dt className="inline font-medium">{t("source.from")}:</dt> <dd className="inline">{sender} &lt;{senderEmail}&gt;</dd></div>
- {recipients && <div><dt className="inline font-medium">{t("source.to")}:</dt> <dd className="inline">{recipients}</dd></div>}
- <div><dt className="inline font-medium">{t("message.date")}:</dt> <dd className="inline">{formatUserDate(message.createdAt, { month: "short", day: "2-digit", year: "numeric", hour: "2-digit", minute: "2-digit" })}</dd></div>
- </dl>
- )}
</div>
+ {expanded && (
+ <SenderCheckNotice
+ message={message}
+ detailsOpen={detailsOpen}
+ onViewDetails={() => setDetailsOpen((open) => !open)}
+ className="mb-3 sm:ml-16"
+ />
+ )}
+ {detailsOpen && (
+ <div className="mb-3 sm:pl-16">
+ <MessageDetailsPanel message={message} onClose={() => setDetailsOpen(false)} />
+ </div>
+ )}
{expanded && body && (
<div className="pb-4 pt-2 sm:pl-16">
{outbound && <MessageOpenStatus messageId={message.id} />}
diff --git a/src/components/messages/message-details-panel.tsx b/src/components/messages/message-details-panel.tsx
new file mode 100644
index 0000000..1873ca2
--- /dev/null
+++ b/src/components/messages/message-details-panel.tsx
@@ -0,0 +1,222 @@
+"use client";
+
+import { useId, useState, type ReactNode } from "react";
+import { AlertTriangle, CheckCircle2, ExternalLink, LoaderCircle, ShieldAlert, ShieldCheck, X } from "@/components/icons";
+import { useLanguage } from "@/components/language-provider";
+import { Button } from "@/components/ui/button";
+import { splitEmailAddressList } from "@/lib/email/address";
+import { formatRecipientAddressList } from "@/lib/email/recipient-display";
+import type { MessageAuthenticationMethod } from "@/lib/email/authentication-types";
+import { formatUserDate } from "@/lib/time/utils";
+import { cn } from "@/lib/utils";
+import { MessageSourceDialog } from "./message-source-dialog";
+import type { MessageDetailsPanelProps } from "./message-details-types";
+import { useMessageAuthentication } from "./use-message-authentication";
+import {
+ getOriginalSender,
+ getReplyToEntries,
+ hasDomainMismatchWarning,
+ hasFailingAuthenticationCheck,
+ hasPassingAuthenticationCheck,
+ hasSenderNameAddressMismatch,
+ isReplyToDifferent,
+} from "./message-details-utils";
+
+function DetailRow({ label, children, warning }: { label: string; children: ReactNode; warning?: string | null }) {
+ return (
+ <div className="grid gap-0.5 sm:grid-cols-[92px_minmax(0,1fr)] sm:gap-3">
+ <dt className="text-neutral-500">{label}</dt>
+ <dd className="min-w-0 break-words text-neutral-900">
+ {children}
+ {warning && (
+ <span className="mt-0.5 flex items-start gap-1 text-amber-700">
+ <AlertTriangle className="mt-px h-3 w-3 shrink-0" aria-hidden="true" />
+ <span>{warning}</span>
+ </span>
+ )}
+ </dd>
+ </div>
+ );
+}
+
+function statusTone(status: string | null): string {
+ if (status === "PASS") return "text-green-700";
+ if (status === "FAIL" || status === "SOFTFAIL" || status === "PERMERROR") return "text-red-700";
+ if (status === "TEMPERROR" || status === "NEUTRAL" || status === "NONE") return "text-amber-700";
+ return "text-neutral-800";
+}
+
+function AuthenticationRow({
+ method,
+ result,
+ detail,
+ noResult,
+}: {
+ method: string;
+ result: MessageAuthenticationMethod | null;
+ detail: string | null;
+ noResult: string;
+}) {
+ const status = result?.status ?? null;
+ const Icon = status === "PASS" ? CheckCircle2 : status === "FAIL" || status === "SOFTFAIL" || status === "PERMERROR" ? AlertTriangle : null;
+ return (
+ <li className="flex items-baseline gap-2">
+ <span className="text-neutral-300" aria-hidden="true">•</span>
+ <span className="w-10 shrink-0 font-medium text-neutral-700">{method}</span>
+ <span className="min-w-0 flex-1 break-words">
+ <span className={cn("inline-flex items-center gap-1 font-medium", statusTone(status))}>
+ {Icon && <Icon className="h-3 w-3 shrink-0 self-center" aria-hidden="true" />}
+ {status ?? noResult}
+ </span>
+ {result && detail && <span className="text-neutral-500"> · {detail}</span>}
+ </span>
+ </li>
+ );
+}
+
+export function MessageDetailsPanel({ message, onClose, className }: MessageDetailsPanelProps) {
+ const { t } = useLanguage();
+ const messageSectionId = useId();
+ const [sourceOpen, setSourceOpen] = useState(false);
+ const { authentication, failed: authenticationFailed, loading } = useMessageAuthentication(message.id, message.direction);
+ const original = getOriginalSender(message.fromAddr);
+ const contactName = message.fromContactName?.trim();
+ const showContactName = message.direction === "inbound" && !!contactName && contactName !== original.name;
+ const replyToEntries = getReplyToEntries(message.replyTo);
+ const replyToWarning = isReplyToDifferent(message);
+ const senderNameWarning = hasSenderNameAddressMismatch(message);
+ const hasPassingCheck = hasPassingAuthenticationCheck(authentication);
+ const hasFailingCheck = hasFailingAuthenticationCheck(authentication);
+
+ const spfDetail = authentication?.available
+ ? authentication.mailedBy
+ ? `mailed by ${authentication.mailedBy}${authentication.spf?.detail ? ` · ${authentication.spf.detail}` : ""}`
+ : authentication.spf?.detail ?? null
+ : null;
+
+ return (
+ <section
+ aria-label={t("message.detailsTitle")}
+ className={cn("overflow-hidden rounded-xl border border-neutral-200 bg-white text-xs", className)}
+ >
+ <header className="flex items-center justify-between gap-2 border-b border-neutral-100 bg-neutral-50/80 px-3 py-2">
+ <h2 className="text-[11px] font-semibold uppercase tracking-[0.08em] text-neutral-500">
+ {t("message.detailsTitle")}
+ </h2>
+ {onClose && (
+ <button
+ type="button"
+ onClick={onClose}
+ aria-label={t("navigation.close")}
+ className="rounded p-0.5 text-neutral-400 transition-colors hover:bg-neutral-200/60 hover:text-neutral-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500/40"
+ >
+ <X className="h-3.5 w-3.5" aria-hidden="true" />
+ </button>
+ )}
+ </header>
+
+ <div
+ className={cn(
+ "grid gap-4 px-3 py-3",
+ message.direction === "inbound" && "sm:grid-cols-[minmax(0,1fr)_minmax(0,1.15fr)] sm:gap-6",
+ )}
+ >
+ <section aria-labelledby={messageSectionId}>
+ <h3 id={messageSectionId} className="text-[10px] font-semibold uppercase tracking-[0.08em] text-neutral-400">
+ {t("message.detailsMessageSection")}
+ </h3>
+ <dl className="mt-2 space-y-2">
+ <DetailRow
+ label={t("message.detailsFrom")}
+ warning={senderNameWarning ? t("message.detailsSenderWarning") : null}
+ >
+ {original.name ? (
+ <>
+ <span className="font-medium">{original.name}</span>{" "}
+ <span className="text-neutral-500">&lt;{original.address}&gt;</span>
+ </>
+ ) : original.address}
+ </DetailRow>
+ {showContactName && <DetailRow label={t("message.detailsContact")}>{contactName}</DetailRow>}
+ {replyToEntries.length > 0 && (
+ <DetailRow
+ label={t("message.detailsReplyTo")}
+ warning={replyToWarning ? t("message.detailsReplyToWarning") : null}
+ >
+ {formatRecipientAddressList(message.replyTo, "full")}
+ </DetailRow>
+ )}
+ <DetailRow label={t("source.to")}>{formatRecipientAddressList(message.toAddr, "full") || "—"}</DetailRow>
+ {splitEmailAddressList(message.ccAddr).length > 0 && (
+ <DetailRow label={t("message.cc")}>{formatRecipientAddressList(message.ccAddr, "full")}</DetailRow>
+ )}
+ {splitEmailAddressList(message.bccAddr).length > 0 && (
+ <DetailRow label={t("message.bcc")}>{formatRecipientAddressList(message.bccAddr, "full")}</DetailRow>
+ )}
+ <DetailRow label={t("message.date")}>
+ {formatUserDate(message.createdAt, { weekday: "short", month: "short", day: "numeric", year: "numeric", hour: "numeric", minute: "2-digit" })}
+ </DetailRow>
+ <DetailRow label={t("source.subject")}>{message.subject?.trim() || t("list.noSubject")}</DetailRow>
+ </dl>
+ </section>
+
+ {message.direction === "inbound" && (
+ <section>
+ <h3 className="flex items-center gap-1.5 text-[10px] font-semibold uppercase tracking-[0.08em] text-neutral-400">
+ <ShieldCheck className="h-3.5 w-3.5" aria-hidden="true" />
+ {t("message.detailsAuthentication")}
+ </h3>
+ {authenticationFailed ? (
+ <p className="mt-2 text-neutral-500">{t("message.detailsAuthenticationError")}</p>
+ ) : loading ? (
+ <p className="mt-2 flex items-center gap-1.5 text-neutral-500">
+ <LoaderCircle className="h-3.5 w-3.5 animate-spin" aria-hidden="true" />
+ {t("message.detailsChecking")}
+ </p>
+ ) : !authentication || !authentication.available ? (
+ <p className="mt-2 text-neutral-500">{t("message.detailsAuthenticationUnavailable")}</p>
+ ) : (
+ <>
+ <ul className="mt-2 space-y-1">
+ <AuthenticationRow method="SPF" result={authentication.spf} detail={spfDetail} noResult={t("source.noResult")} />
+ <AuthenticationRow method="DKIM" result={authentication.dkim} detail={authentication.dkim?.detail ?? null} noResult={t("source.noResult")} />
+ <AuthenticationRow method="DMARC" result={authentication.dmarc} detail={authentication.dmarc?.detail ?? null} noResult={t("source.noResult")} />
+ </ul>
+ {authentication.encryption && (
+ <p className="mt-2 text-neutral-500">
+ {t("message.detailsEncryption")} <span className="text-neutral-900">{authentication.encryption}</span>
+ </p>
+ )}
+ {hasDomainMismatchWarning(authentication) && (
+ <p className="mt-2 flex items-start gap-1.5 text-amber-800">
+ <ShieldAlert className="mt-0.5 h-3.5 w-3.5 shrink-0" aria-hidden="true" />
+ <span>{t("message.detailsDomainMismatch")}</span>
+ </p>
+ )}
+ {(hasPassingCheck || hasFailingCheck) && (
+ <div className="mt-3 rounded-lg bg-neutral-100/70 px-2.5 py-2">
+ <h4 className="text-[10px] font-semibold uppercase tracking-[0.08em] text-neutral-500">
+ {t("message.detailsExplanationTitle")}
+ </h4>
+ <div className="mt-1 space-y-1 text-[11px] leading-snug text-neutral-600">
+ {hasPassingCheck && <p>{t("message.detailsAuthenticationNote")}</p>}
+ {hasFailingCheck && <p>{t("message.detailsAuthenticationFailureNote")}</p>}
+ </div>
+ </div>
+ )}
+ </>
+ )}
+ </section>
+ )}
+ </div>
+
+ <footer className="flex justify-end border-t border-neutral-100 px-3 py-2">
+ <Button type="button" variant="ghost" size="sm" className="h-7 px-2 text-blue-600 hover:text-blue-700" onClick={() => setSourceOpen(true)}>
+ <ExternalLink className="h-3.5 w-3.5" aria-hidden="true" />
+ {t("message.showOriginal")}
+ </Button>
+ </footer>
+ <MessageSourceDialog messageId={message.id} open={sourceOpen} onOpenChange={setSourceOpen} />
+ </section>
+ );
+}
diff --git a/src/components/messages/message-details-types.d.ts b/src/components/messages/message-details-types.d.ts
new file mode 100644
index 0000000..973b729
--- /dev/null
+++ b/src/components/messages/message-details-types.d.ts
@@ -0,0 +1,21 @@
+import type { Message } from "@/hooks/types";
+
+export type MessageDetailsMessage = Pick<
+ Message,
+ | "id"
+ | "direction"
+ | "fromAddr"
+ | "fromContactName"
+ | "toAddr"
+ | "ccAddr"
+ | "bccAddr"
+ | "replyTo"
+ | "subject"
+ | "createdAt"
+>;
+
+export type MessageDetailsPanelProps = {
+ message: MessageDetailsMessage;
+ onClose?: () => void;
+ className?: string;
+};
diff --git a/src/components/messages/message-details-utils.ts b/src/components/messages/message-details-utils.ts
new file mode 100644
index 0000000..6b22d9d
--- /dev/null
+++ b/src/components/messages/message-details-utils.ts
@@ -0,0 +1,137 @@
+import { authFetch } from "@/lib/auth/client";
+import { getEmailAddress, normalizeEmailAddress, parseEmailAddressParts, splitEmailAddressList } from "@/lib/email/address";
+import { isSameOrSubdomain } from "@/lib/email/domain-match";
+import type { MessageAuthenticationResponse } from "@/lib/email/authentication-types";
+import type { MessageDetailsMessage } from "./message-details-types";
+
+export type OriginalSender = {
+ /** Display name exactly as it appeared in the message's From header. */
+ name: string | null;
+ address: string;
+ /** Name and address joined for display, or just the address. */
+ label: string;
+};
+
+/** The sender the message itself claims, not the locally saved contact name. */
+export function getOriginalSender(fromAddr: string): OriginalSender {
+ const parts = parseEmailAddressParts(fromAddr);
+ const address = parts.address || fromAddr.trim();
+ const name = parts.name?.trim() || null;
+ return {
+ name,
+ address,
+ label: name ? `${name} <${address}>` : address,
+ };
+}
+
+export function getReplyToEntries(replyTo: string | null | undefined): string[] {
+ return splitEmailAddressList(replyTo);
+}
+
+/**
+ * True when replies leave the From address's domain. Mailings lists often use
+ * another mailbox on the same domain, so only a different domain is called out;
+ * the details panel still shows every Reply-To address.
+ */
+export function isReplyToDifferent(message: Pick<MessageDetailsMessage, "fromAddr" | "replyTo">): boolean {
+ const entries = getReplyToEntries(message.replyTo);
+ if (entries.length === 0) return false;
+ const fromDomain = getEmailAddress(message.fromAddr).split("@").pop() ?? "";
+ if (!fromDomain) return false;
+ return entries.some((entry) => {
+ const replyDomain = getEmailAddress(entry).split("@").pop() ?? "";
+ return !isSameOrSubdomain(replyDomain, fromDomain);
+ });
+}
+
+/**
+ * True when the display name carries an email address that is not the actual
+ * From address. `"[email protected]" <[email protected]>` is the shape this
+ * catches; a brand name without an address does not trigger a warning.
+ */
+export function hasSenderNameAddressMismatch(message: Pick<MessageDetailsMessage, "fromAddr">): boolean {
+ const { name, address } = getOriginalSender(message.fromAddr);
+ if (!name) return false;
+ const from = normalizeEmailAddress(address);
+ const addresses = name.match(/[^\s<>()"']+@[^\s<>()"']+\.[^\s<>()"']+/g) ?? [];
+ return addresses.some((candidate) => normalizeEmailAddress(candidate) !== from);
+}
+
+export async function fetchMessageAuthentication(
+ messageId: string,
+ signal?: AbortSignal,
+): Promise<MessageAuthenticationResponse> {
+ const response = await authFetch(`/api/messages/${encodeURIComponent(messageId)}/authentication`, {
+ signal,
+ cache: "no-store",
+ redirectOnUnauthorized: false,
+ });
+ if (!response.ok) throw new Error("Unable to load authentication results");
+ return (await response.json()) as MessageAuthenticationResponse;
+}
+
+/** Statuses where a method rejected the sender rather than being inconclusive. */
+const FAILED_AUTHENTICATION_STATUSES = new Set(["FAIL", "SOFTFAIL", "PERMERROR"]);
+
+function isFailedStatus(status: string | null | undefined): boolean {
+ return !!status && FAILED_AUTHENTICATION_STATUSES.has(status.toUpperCase());
+}
+
+function isPassStatus(status: string | null | undefined): boolean {
+ return status?.toUpperCase() === "PASS";
+}
+
+/** DMARC pass wins; otherwise flag DMARC failure or failures without a pass. */
+function hasAuthenticationWarning(authentication: MessageAuthenticationResponse | null): boolean {
+ if (!authentication?.available) return false;
+ const dmarc = authentication.dmarc?.status ?? null;
+ if (isPassStatus(dmarc)) return false;
+ if (isFailedStatus(dmarc)) return true;
+ const results = [authentication.spf?.status ?? null, authentication.dkim?.status ?? null];
+ const failures = results.filter(isFailedStatus).length;
+ const passes = results.filter(isPassStatus).length;
+ return failures > 0 && passes === 0;
+}
+
+/** DMARC pass already proves alignment; sibling subdomains are valid. */
+export function hasDomainMismatchWarning(authentication: MessageAuthenticationResponse | null): boolean {
+ if (!authentication?.available) return false;
+ if (isPassStatus(authentication.dmarc?.status)) return false;
+ return authentication.aligned === false;
+}
+
+export function hasPassingAuthenticationCheck(authentication: MessageAuthenticationResponse | null): boolean {
+ if (!authentication?.available) return false;
+ return [authentication.spf, authentication.dkim, authentication.dmarc]
+ .some((method) => isPassStatus(method?.status));
+}
+
+export function hasFailingAuthenticationCheck(authentication: MessageAuthenticationResponse | null): boolean {
+ if (!authentication?.available) return false;
+ return [authentication.spf, authentication.dkim, authentication.dmarc]
+ .some((method) => isFailedStatus(method?.status));
+}
+
+export type SenderWarningReason = "authentication" | "senderName" | "domain" | "replyTo";
+
+export type SenderWarning = {
+ level: "warning";
+ /** Most important first. */
+ reasons: SenderWarningReason[];
+};
+
+/** Reasons a received message needs attention before opening Details. */
+export function getSenderWarning(
+ message: Pick<MessageDetailsMessage, "direction" | "fromAddr" | "replyTo">,
+ authentication: MessageAuthenticationResponse | null,
+): SenderWarning | null {
+ if (message.direction !== "inbound") return null;
+ const reasons: SenderWarningReason[] = [];
+ const authenticationWarning = hasAuthenticationWarning(authentication);
+ if (authenticationWarning) reasons.push("authentication");
+ if (hasSenderNameAddressMismatch(message)) reasons.push("senderName");
+ // DMARC failure already reports the unaligned signature.
+ if (!authenticationWarning && hasDomainMismatchWarning(authentication)) reasons.push("domain");
+ if (isReplyToDifferent(message)) reasons.push("replyTo");
+ return reasons.length > 0 ? { level: "warning", reasons } : null;
+}
diff --git a/src/components/messages/sender-check-notice.tsx b/src/components/messages/sender-check-notice.tsx
new file mode 100644
index 0000000..7a101c6
--- /dev/null
+++ b/src/components/messages/sender-check-notice.tsx
@@ -0,0 +1,73 @@
+"use client";
+
+import { ChevronDown, ShieldAlert } from "@/components/icons";
+import { useLanguage } from "@/components/language-provider";
+import { cn } from "@/lib/utils";
+import type { TranslationKey } from "@/lib/i18n/types";
+import { getSenderWarning, type SenderWarningReason } from "./message-details-utils";
+import { useMessageAuthentication } from "./use-message-authentication";
+import type { SenderCheckBadgeProps, SenderCheckNoticeProps } from "./sender-check-types";
+
+const reasonKeys: Record<SenderWarningReason, TranslationKey> = {
+ authentication: "message.senderCheckAuthenticationFailed",
+ senderName: "message.detailsSenderWarning",
+ domain: "message.detailsDomainMismatch",
+ replyTo: "message.detailsReplyToWarning",
+};
+
+/** Compact warning for a collapsed thread card. */
+export function SenderCheckBadge({ message, className }: SenderCheckBadgeProps) {
+ const { t } = useLanguage();
+ const { authentication } = useMessageAuthentication(message.id, message.direction);
+ const warning = getSenderWarning(message, authentication);
+ if (!warning) return null;
+ return (
+ <span
+ title={warning.reasons.map((reason) => t(reasonKeys[reason])).join(" ")}
+ className={cn("mt-1 inline-flex items-center gap-1 rounded-full bg-amber-100 px-2 py-0.5 text-[11px] font-medium text-amber-800", className)}
+ >
+ <ShieldAlert className="h-3 w-3 shrink-0" aria-hidden="true" />
+ {t("message.senderCheckShort")}
+ </span>
+ );
+}
+
+/** Keep the live region mounted so late authentication warnings are announced. */
+export function SenderCheckNotice({
+ message,
+ detailsOpen = false,
+ onViewDetails,
+ announce = false,
+ className,
+}: SenderCheckNoticeProps) {
+ const { t } = useLanguage();
+ const { authentication } = useMessageAuthentication(message.id, message.direction);
+ const warning = getSenderWarning(message, authentication);
+
+ return (
+ <div role={announce ? "status" : undefined} className={warning ? className : undefined}>
+ {warning && (
+ <button
+ type="button"
+ onClick={onViewDetails}
+ aria-expanded={detailsOpen}
+ aria-label={t("message.senderCheckTitle")}
+ className={cn(
+ "flex w-full items-center gap-2 rounded-xl border px-3 py-2 text-left text-[13px] font-medium transition-colors",
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-amber-600",
+ detailsOpen
+ ? "border-amber-300 bg-amber-100 text-amber-950 hover:bg-amber-200/40"
+ : "border-amber-200/80 bg-amber-50/70 text-amber-900 hover:bg-amber-100/70",
+ )}
+ >
+ <ShieldAlert className="h-4 w-4 shrink-0 text-amber-700" aria-hidden="true" />
+ <span className="min-w-0 flex-1 break-words">{t("message.senderCheckTitle")}</span>
+ <ChevronDown
+ aria-hidden="true"
+ className={cn("h-4 w-4 shrink-0 transition-transform", detailsOpen && "rotate-180")}
+ />
+ </button>
+ )}
+ </div>
+ );
+}
diff --git a/src/components/messages/sender-check-types.d.ts b/src/components/messages/sender-check-types.d.ts
new file mode 100644
index 0000000..24780db
--- /dev/null
+++ b/src/components/messages/sender-check-types.d.ts
@@ -0,0 +1,19 @@
+import type { MessageDetailsMessage } from "./message-details-types";
+
+export type SenderCheckProps = {
+ message: MessageDetailsMessage;
+};
+
+export type SenderCheckBadgeProps = SenderCheckProps & {
+ className?: string;
+};
+
+export type SenderCheckNoticeProps = SenderCheckProps & {
+ /** Whether the details panel is open; drives the chevron and the expanded state. */
+ detailsOpen?: boolean;
+ /** Opens or closes the sender details panel. */
+ onViewDetails: () => void;
+ /** Announce the warning when it appears after authentication loads. */
+ announce?: boolean;
+ className?: string;
+};
diff --git a/src/components/messages/thread-message-actions-types.d.ts b/src/components/messages/thread-message-actions-types.d.ts
index 4b81a11..e9b79a1 100644
--- a/src/components/messages/thread-message-actions-types.d.ts
+++ b/src/components/messages/thread-message-actions-types.d.ts
@@ -6,4 +6,6 @@ export type ThreadMessageActionsProps = {
ownAddress?: string | null;
ownAddresses?: string[];
starOnly?: boolean;
+ detailsOpen?: boolean;
+ onToggleDetails?: () => void;
};
diff --git a/src/components/messages/thread-message-actions.tsx b/src/components/messages/thread-message-actions.tsx
index f5ac70f..b44ae6c 100644
--- a/src/components/messages/thread-message-actions.tsx
+++ b/src/components/messages/thread-message-actions.tsx
@@ -1,7 +1,7 @@
"use client";
import { createElement, useEffect, useRef, useState } from "react";
-import { Ban, FileCode2, Forward, Mail, MailOpen, MoreVertical, Reply, ReplyAll, Star } from "@/components/icons";
+import { Ban, FileCode2, Forward, Info, Mail, MailOpen, MoreVertical, Reply, ReplyAll, Star } from "@/components/icons";
import { useCompose } from "@/components/compose/compose-context";
import { MessageSourceDialog } from "@/components/messages/message-source-dialog";
import { useDismissible } from "@/components/use-dismissible";
@@ -9,6 +9,7 @@ import { getOwnAddressForMessage } from "@/app/(dashboard)/inbox/[messageId]/uti
import { useLanguage } from "@/components/language-provider";
import { Button } from "@/components/ui/button";
import { Tooltip } from "@/components/ui/tooltip";
+import { cn } from "@/lib/utils";
import {
blockMessageContact,
createForwardDraft,
@@ -29,6 +30,8 @@ export function ThreadMessageActions({
ownAddress,
ownAddresses = [],
starOnly = false,
+ detailsOpen = false,
+ onToggleDetails,
}: ThreadMessageActionsProps) {
const { t } = useLanguage();
const { openDraftComposer } = useCompose();
@@ -137,6 +140,21 @@ export function ThreadMessageActions({
return (
<div className="flex items-center gap-0.5">
{error && <span role="alert" className="mr-1 max-w-32 truncate text-xs text-red-600" title={error}>{error}</span>}
+ {onToggleDetails && (
+ <Tooltip label={t("message.details")}>
+ <Button
+ type="button"
+ variant="ghost"
+ size="sm"
+ className={cn("h-8 w-8 px-0", detailsOpen && "bg-neutral-100 text-neutral-900")}
+ aria-label={t("message.details")}
+ aria-expanded={detailsOpen}
+ onClick={onToggleDetails}
+ >
+ <Info className="h-4 w-4" />
+ </Button>
+ </Tooltip>
+ )}
<Tooltip label={starred ? t("message.removeStar") : t("message.star")}>
<Button
type="button"
diff --git a/src/components/messages/use-message-authentication.ts b/src/components/messages/use-message-authentication.ts
new file mode 100644
index 0000000..554d1af
--- /dev/null
+++ b/src/components/messages/use-message-authentication.ts
@@ -0,0 +1,91 @@
+"use client";
+
+import { useEffect, useState } from "react";
+import type { MessageAuthenticationResponse } from "@/lib/email/authentication-types";
+import { fetchMessageAuthentication } from "./message-details-utils";
+
+/** Stored results are immutable, so cache them across the reader. */
+const resolved = new Map<string, MessageAuthenticationResponse>();
+const pending = new Map<string, Promise<MessageAuthenticationResponse>>();
+const queue: Array<() => void> = [];
+const MAX_CONCURRENT_REQUESTS = 4;
+let activeRequests = 0;
+
+function schedule<T>(task: () => Promise<T>): Promise<T> {
+ return new Promise<T>((resolve, reject) => {
+ const run = () => {
+ activeRequests += 1;
+ task()
+ .then(resolve, reject)
+ .finally(() => {
+ activeRequests -= 1;
+ queue.shift()?.();
+ });
+ };
+ if (activeRequests < MAX_CONCURRENT_REQUESTS) run();
+ else queue.push(run);
+ });
+}
+
+function loadMessageAuthentication(messageId: string): Promise<MessageAuthenticationResponse> {
+ const cached = resolved.get(messageId);
+ if (cached) return Promise.resolve(cached);
+ const inFlight = pending.get(messageId);
+ if (inFlight) return inFlight;
+
+ const request = schedule(() => fetchMessageAuthentication(messageId))
+ .then((result) => {
+ resolved.set(messageId, result);
+ return result;
+ })
+ .finally(() => {
+ pending.delete(messageId);
+ });
+ pending.set(messageId, request);
+ return request;
+}
+
+type AuthenticationState = {
+ messageId: string;
+ authentication: MessageAuthenticationResponse | null;
+ failed: boolean;
+};
+
+export type MessageAuthenticationState = {
+ authentication: MessageAuthenticationResponse | null;
+ failed: boolean;
+ loading: boolean;
+};
+
+/** Loads authentication once per message, with at most four concurrent requests. */
+export function useMessageAuthentication(
+ messageId: string | null | undefined,
+ direction: string | null | undefined,
+): MessageAuthenticationState {
+ const [state, setState] = useState<AuthenticationState | null>(null);
+ const inbound = !!messageId && direction === "inbound";
+
+ useEffect(() => {
+ if (!messageId || !inbound) return;
+ let cancelled = false;
+ loadMessageAuthentication(messageId)
+ .then((authentication) => {
+ if (!cancelled) setState({ messageId, authentication, failed: false });
+ })
+ .catch(() => {
+ if (!cancelled) setState({ messageId, authentication: null, failed: true });
+ });
+ return () => {
+ cancelled = true;
+ };
+ }, [messageId, inbound]);
+
+ const current = state?.messageId === messageId ? state : null;
+ const authentication = current?.authentication ?? (messageId ? resolved.get(messageId) ?? null : null);
+ const failed = current?.failed ?? false;
+ return {
+ authentication,
+ failed,
+ loading: inbound && !authentication && !failed,
+ };
+}
diff --git a/src/lib/email/authentication-types.d.ts b/src/lib/email/authentication-types.d.ts
new file mode 100644
index 0000000..fe238cc
--- /dev/null
+++ b/src/lib/email/authentication-types.d.ts
@@ -0,0 +1,33 @@
+export type MessageAuthenticationMethod = {
+ /** Provider verdict such as PASS, FAIL or SOFTFAIL. */
+ status: string;
+ /** Supporting detail from the provider, such as an IP or signing domain. */
+ detail: string | null;
+};
+
+/**
+ * Authentication results the receiving provider recorded. Only the provider
+ * headers Mailflare trusts are read, so these values never come from headers
+ * the sender wrote.
+ */
+export type MessageAuthentication = {
+ spf: MessageAuthenticationMethod | null;
+ dkim: MessageAuthenticationMethod | null;
+ dmarc: MessageAuthenticationMethod | null;
+ /** Domain that signed the DKIM signature. */
+ signedBy: string | null;
+ /** Domain the message was mailed from, from SPF. */
+ mailedBy: string | null;
+ senderIp: string | null;
+ /** TLS version used between the sender and the receiving provider. */
+ encryption: string | null;
+ /** Whether a signing or mailing domain shares the sender's registrable domain. */
+ aligned: boolean | null;
+};
+
+export type MessageAuthenticationResponse =
+ | ({ available: true } & MessageAuthentication)
+ | {
+ available: false;
+ reason: "outbound" | "not-retained" | "unavailable" | "untrusted";
+ };
diff --git a/src/lib/email/domain-match.ts b/src/lib/email/domain-match.ts
new file mode 100644
index 0000000..be167f8
--- /dev/null
+++ b/src/lib/email/domain-match.ts
@@ -0,0 +1,14 @@
+/**
+ * Conservative same-owner check: equal domains, or one is a subdomain of the
+ * other. It deliberately does not collapse unrelated names under a shared
+ * two-label suffix (`victim.co.ke` and `attacker.co.ke`), because those are
+ * independent registrations even though the final labels match. Two sibling
+ * subdomains are treated as different, which can add a warning but never hides
+ * one.
+ */
+export function isSameOrSubdomain(a: string, b: string): boolean {
+ const left = a.trim().toLowerCase().replace(/\.$/, "");
+ const right = b.trim().toLowerCase().replace(/\.$/, "");
+ if (!left || !right) return false;
+ return left === right || left.endsWith(`.${right}`) || right.endsWith(`.${left}`);
+}
diff --git a/src/lib/email/provider-trace.ts b/src/lib/email/provider-trace.ts
index b6085a6..a5fe715 100644
--- a/src/lib/email/provider-trace.ts
+++ b/src/lib/email/provider-trace.ts
@@ -1,4 +1,6 @@
import type { ProviderVerdicts } from "@/lib/spam/types";
+import type { MessageAuthentication, MessageAuthenticationMethod } from "@/lib/email/authentication-types";
+import { isSameOrSubdomain } from "@/lib/email/domain-match";
import { extractSenderIp } from "@/lib/spam/domain-utils";
export type ProviderTrace = { verdicts?: ProviderVerdicts; senderIp?: string };
@@ -23,35 +25,176 @@ function readHeaderLines(raw: ArrayBuffer): { name: string; value: string }[] {
}
/**
- * The verdicts and connecting IP SES recorded in the headers it prepended (Resend receives through SES too).
- * Only the leading run of SES-written headers is read, and the first of each wins, so anything the sender
- * placed further down cannot pose as SES. Without an `X-SES-Receipt` in that run nothing is trusted.
+ * The leading run of headers SES wrote, or null when the message did not come
+ * through SES. Reading stops at the first header SES did not add, so a sender
+ * cannot forge an authentication result further down the message.
*/
-export function readSesTrace(raw: ArrayBuffer): ProviderTrace {
+function readSesHeaders(raw: ArrayBuffer): { name: string; value: string }[] | null {
const leading: { name: string; value: string }[] = [];
for (const header of readHeaderLines(raw)) {
if (!SES_HEADERS.has(header.name)) break;
leading.push(header);
}
- if (!leading.some((header) => header.name === "x-ses-receipt")) return {};
- const first = (name: string) => leading.find((header) => header.name === name)?.value;
+ return leading.some((header) => header.name === "x-ses-receipt") ? leading : null;
+}
+
+function headerValue(headers: { name: string; value: string }[], name: string): string | undefined {
+ return headers.find((header) => header.name === name)?.value;
+}
+
+/**
+ * The verdicts and connecting IP SES recorded in the headers it prepended (Resend receives through SES too).
+ * Without an `X-SES-Receipt` in that leading run nothing is trusted.
+ */
+export function readSesTrace(raw: ArrayBuffer): ProviderTrace {
+ const leading = readSesHeaders(raw);
+ if (!leading) return {};
const verdicts: ProviderVerdicts = {};
- const results = first("authentication-results");
+ const results = headerValue(leading, "authentication-results");
if (results && /^amazonses\.com\s*;/i.test(results)) {
for (const method of ["spf", "dkim", "dmarc"] as const) {
const value = results.match(new RegExp(`(?:^|[;\\s])${method}=([a-z]+)`, "i"))?.[1];
if (value) verdicts[method] = value.toUpperCase();
}
}
- const spam = first("x-ses-spam-verdict");
- const virus = first("x-ses-virus-verdict");
+ const spam = headerValue(leading, "x-ses-spam-verdict");
+ const virus = headerValue(leading, "x-ses-virus-verdict");
if (spam) verdicts.spam = spam.toUpperCase();
if (virus) verdicts.virus = virus.toUpperCase();
- const received = first("received");
+ const received = headerValue(leading, "received");
const senderIp = received ? extractSenderIp({ received }) ?? undefined : undefined;
return { verdicts: Object.keys(verdicts).length ? verdicts : undefined, senderIp };
}
+/** Split an Authentication-Results value on semicolons outside comment parentheses. */
+function splitResults(value: string): string[] {
+ const sections: string[] = [];
+ let current = "";
+ let depth = 0;
+ for (const char of value) {
+ if (char === "(") depth += 1;
+ else if (char === ")") depth = Math.max(0, depth - 1);
+ if (char === ";" && depth === 0) {
+ if (current.trim()) sections.push(current.trim());
+ current = "";
+ continue;
+ }
+ current += char;
+ }
+ if (current.trim()) sections.push(current.trim());
+ return sections;
+}
+
+function methodSections(sections: string[], method: "spf" | "dkim" | "dmarc"): string[] {
+ return sections.filter((section) => new RegExp(`^${method}\\s*=`, "i").test(section));
+}
+
+/** Prefer a passing signature when a message carries more than one of the same method. */
+function methodSection(sections: string[], method: "spf" | "dkim" | "dmarc"): string | null {
+ const matches = methodSections(sections, method);
+ return matches.find((section) => new RegExp(`^${method}\\s*=\\s*pass\\b`, "i").test(section)) ?? matches[0] ?? null;
+}
+
+function methodStatus(section: string | null, method: "spf" | "dkim" | "dmarc"): string | null {
+ return section?.match(new RegExp(`^${method}\\s*=\\s*([a-z]+)`, "i"))?.[1]?.toUpperCase() ?? null;
+}
+
+/** A domain from either `d=`/`smtp.mailfrom=` (a domain) or `i=` (a mailbox). */
+function domainFromIdentity(value: string | null): string | null {
+ if (!value) return null;
+ const cleaned = value.replace(/^@/, "").replace(/^<|>$/g, "").trim().toLowerCase();
+ const at = cleaned.lastIndexOf("@");
+ const domain = at >= 0 ? cleaned.slice(at + 1) : cleaned;
+ return domain || null;
+}
+
+function tlsVersion(received: string | undefined): string | null {
+ const version = received?.match(/\bversion\s*=\s*(TLS(?:v|_)?[\d.]+)/i)?.[1];
+ if (!version) return null;
+ return version.replace(/^TLSv?/i, "TLS ").replace(/_/g, ".");
+}
+
+function senderDomainMatches(fromAddress: string, domains: string[]): boolean | null {
+ const fromDomain = fromAddress.slice(fromAddress.lastIndexOf("@") + 1).trim().toLowerCase();
+ if (!fromDomain || domains.length === 0) return null;
+ return domains.some((domain) => isSameOrSubdomain(domain, fromDomain));
+}
+
+/**
+ * Authentication results for a message that arrived through SES. Returns null
+ * when the message has no trusted provider trace, so callers can say results
+ * are unavailable instead of trusting headers the sender could have written.
+ */
+export function readSesAuthentication(raw: ArrayBuffer, fromAddress: string): MessageAuthentication | null {
+ const leading = readSesHeaders(raw);
+ if (!leading) return null;
+ const results = headerValue(leading, "authentication-results");
+ if (!results || !/^amazonses\.com\s*;/i.test(results)) return null;
+
+ const sections = splitResults(results);
+ const spfSections = methodSections(sections, "spf");
+ const dkimSections = methodSections(sections, "dkim");
+ const spfSection = methodSection(sections, "spf");
+ const dkimSection = methodSection(sections, "dkim");
+ const dmarcSection = methodSection(sections, "dmarc");
+
+ const spfStatus = methodStatus(spfSection, "spf");
+ const dkimStatus = methodStatus(dkimSection, "dkim");
+ const dmarcStatus = methodStatus(dmarcSection, "dmarc");
+ if (!spfStatus && !dkimStatus && !dmarcStatus) return null;
+
+ const spfIp = spfSection?.match(/\bclient-ip\s*=\s*([^\s;)]+)/i)?.[1]
+ ?? spfSection?.match(/\(sender IP is ([^\s;)]+)\)/i)?.[1]
+ ?? null;
+ const mailedBy = spfSection
+ ? domainFromIdentity(
+ spfSection.match(/\bsmtp\.mailfrom\s*=\s*([^\s;)]+)/i)?.[1]
+ ?? spfSection.match(/\benvelope-from\s*=\s*([^\s;)]+)/i)?.[1]
+ ?? null,
+ )
+ : null;
+ const signedBy = dkimSection
+ ? domainFromIdentity(
+ dkimSection.match(/\bheader\.d\s*=\s*([^\s;)]+)/i)?.[1]
+ ?? dkimSection.match(/\bheader\.i\s*=\s*@?([^\s;)]+)/i)?.[1]
+ ?? null,
+ )
+ : null;
+ const dmarcDomain = dmarcSection?.match(/\bheader\.from\s*=\s*([^\s;)]+)/i)?.[1]?.toLowerCase() ?? null;
+ // Only passing signatures say anything about alignment; a failing one must
+ // not make an unrelated sender look aligned.
+ const alignedDomains = [...spfSections, ...dkimSections]
+ .filter((section) => /^(?:spf|dkim)\s*=\s*pass\b/i.test(section))
+ .map((section) => /^spf\s*=/i.test(section)
+ ? domainFromIdentity(
+ section.match(/\bsmtp\.mailfrom\s*=\s*([^\s;)]+)/i)?.[1]
+ ?? section.match(/\benvelope-from\s*=\s*([^\s;)]+)/i)?.[1]
+ ?? null,
+ )
+ : domainFromIdentity(
+ section.match(/\bheader\.d\s*=\s*([^\s;)]+)/i)?.[1]
+ ?? section.match(/\bheader\.i\s*=\s*@?([^\s;)]+)/i)?.[1]
+ ?? null,
+ ))
+ .filter((domain): domain is string => !!domain);
+
+ const method = (status: string | null, detail: string | null): MessageAuthenticationMethod | null =>
+ status ? { status, detail } : null;
+ const received = headerValue(leading, "received");
+ const senderIp = spfIp ?? (received ? extractSenderIp({ received }) : null);
+
+ return {
+ spf: method(spfStatus, spfIp ? `IP ${spfIp}` : mailedBy ? `mailed by ${mailedBy}` : null),
+ dkim: method(dkimStatus, signedBy ? `d=${signedBy}` : null),
+ dmarc: method(dmarcStatus, dmarcDomain ? `header.from=${dmarcDomain}` : null),
+ signedBy,
+ mailedBy,
+ senderIp,
+ encryption: tlsVersion(received),
+ aligned: senderDomainMatches(fromAddress, alignedDomains),
+ };
+}
+
/** Headers a provider has not vouched for: nothing the sender wrote here may count as authentication. */
const UNTRUSTED_PROVIDER_HEADERS = new Set(["authentication-results", "received-spf", "arc-authentication-results", "received", "return-path", "x-ses-receipt", "x-ses-spam-verdict", "x-ses-virus-verdict", "x-ses-dkim-signature"]);
const MAX_HEADER_ENTRIES = 200;
diff --git a/src/lib/i18n/en.json b/src/lib/i18n/en.json
index 4861e96..00ab1fa 100644
--- a/src/lib/i18n/en.json
+++ b/src/lib/i18n/en.json
@@ -78,6 +78,27 @@
"message.forward": "Forward",
"message.showOriginal": "Show original",
"message.details": "Details",
+ "message.detailsTitle": "Message details",
+ "message.detailsMessageSection": "Message",
+ "message.detailsAuthentication": "Authentication",
+ "message.detailsAuthenticationError": "Could not check authentication.",
+ "message.detailsAuthenticationFailureNote": "A failed check means the sending domain could not be verified; it does not prove the message is malicious.",
+ "message.detailsAuthenticationNote": "A pass confirms the sending domain, not the person or company.",
+ "message.detailsAuthenticationUnavailable": "Provider-verified authentication results are not available for this message.",
+ "message.detailsChecking": "Checking authentication…",
+ "message.detailsContact": "Saved contact",
+ "message.detailsDomainMismatch": "The signing domain differs from the sender's domain.",
+ "message.detailsEncryption": "Encryption",
+ "message.detailsExplanationTitle": "What these results mean",
+ "message.detailsFrom": "Original sender",
+ "message.detailsReplyTo": "Reply-To",
+ "message.detailsReplyToWarning": "Replies to this message go to a different address.",
+ "message.detailsSenderWarning": "The sender name contains a different email address.",
+ "message.senderCheckAuthenticationFailed": "Sender authentication failed.",
+ "message.senderCheckCaution": "Be cautious with links and attachments.",
+ "message.senderCheckShort": "Check sender",
+ "message.senderCheckTitle": "Sender checks need attention",
+ "message.senderCheckViewDetails": "Review sender details",
"message.date": "Date",
"message.blockContact": "Block contact",
"message.star": "Star",
diff --git a/src/lib/seed-raw.ts b/src/lib/seed-raw.ts
new file mode 100644
index 0000000..7b7bd24
--- /dev/null
+++ b/src/lib/seed-raw.ts
@@ -0,0 +1,56 @@
+import { getEmailAddress } from "@/lib/email/address";
+import type { SeedMessageDefinition } from "@/lib/seed-types";
+
+function addressDomain(address: string, fallback: string): string {
+ const email = getEmailAddress(address).trim().toLowerCase();
+ const at = email.lastIndexOf("@");
+ return at >= 0 && at < email.length - 1 ? email.slice(at + 1) : fallback;
+}
+
+/** Builds RFC822 source with SES delivery headers for trusted demo messages. */
+export function buildSeedRawMessage(message: SeedMessageDefinition, createdAt: Date): string {
+ const options = message.raw;
+ if (!options) throw new Error("A seed raw message needs delivery options");
+
+ const fromDomain = addressDomain(message.fromAddr, "example.test");
+ const signedBy = options.signedBy ?? fromDomain;
+ const mailedBy = options.mailedBy ?? fromDomain;
+ const senderIp = options.senderIp ?? "203.0.113.24";
+ const toAddress = getEmailAddress(message.toAddr) || message.toAddr;
+ const headers: string[] = [];
+
+ if (options.trusted) {
+ headers.push(
+ `Return-Path: <bounce@${mailedBy}>`,
+ `Received: from mail.${mailedBy} (mail.${mailedBy} [${senderIp}]) by inbound-smtp.us-east-1.amazonaws.com with SMTP id seed for <${toAddress}> (version=${options.tls ?? "TLSv1.3"}, cipher=TLS_AES_256_GCM_SHA384); ${createdAt.toUTCString()}`,
+ `Authentication-Results: amazonses.com; spf=${options.spf ?? "pass"} (sender IP is ${senderIp}) smtp.mailfrom=${mailedBy}; dkim=${options.dkim ?? "pass"} header.d=${signedBy} header.i=@${signedBy}; dmarc=${options.dmarc ?? "pass"} header.from=${fromDomain};`,
+ "X-SES-Spam-Verdict: PASS",
+ "X-SES-Virus-Verdict: PASS",
+ "X-SES-Receipt: seed",
+ );
+ } else {
+ // Forged: no SES receipt, so readers must ignore it.
+ headers.push(
+ `Authentication-Results: amazonses.com; spf=pass smtp.mailfrom=${fromDomain}; dkim=pass header.d=${fromDomain}; dmarc=pass header.from=${fromDomain};`,
+ );
+ }
+
+ headers.push(
+ `From: ${message.fromAddr}`,
+ `To: ${message.toAddr}`,
+ ...(message.ccAddr ? [`Cc: ${message.ccAddr}`] : []),
+ ...(message.bccAddr ? [`Bcc: ${message.bccAddr}`] : []),
+ ...(message.replyTo ? [`Reply-To: ${message.replyTo}`] : []),
+ `Subject: ${message.subject}`,
+ `Date: ${createdAt.toUTCString()}`,
+ `Message-ID: ${message.providerMessageId ?? `<seed-${createdAt.getTime()}@example.test>`}`,
+ ...(message.inReplyTo ? [`In-Reply-To: ${message.inReplyTo}`] : []),
+ ...(message.references ? [`References: ${message.references}`] : []),
+ "MIME-Version: 1.0",
+ "Content-Type: text/plain; charset=utf-8",
+ "",
+ message.textBody,
+ );
+
+ return headers.join("\r\n");
+}
diff --git a/src/lib/seed-types.d.ts b/src/lib/seed-types.d.ts
index c4a521d..bd34dce 100644
--- a/src/lib/seed-types.d.ts
+++ b/src/lib/seed-types.d.ts
@@ -13,15 +13,39 @@ export type SeedMessageStatus =
| "queued"
| "failed";
+/**
+ * Synthetic delivery headers: trusted messages get an SES trace; untrusted
+ * ones get a forged Authentication-Results header without a receipt.
+ */
+export type SeedRawMessageOptions = {
+ trusted: boolean;
+ spf?: "pass" | "fail";
+ dkim?: "pass" | "fail";
+ dmarc?: "pass" | "fail";
+ signedBy?: string;
+ mailedBy?: string;
+ senderIp?: string;
+ tls?: string;
+};
+
export type SeedMessageDefinition = {
mailbox: SeedMailboxKey;
direction: "inbound" | "outbound";
status: SeedMessageStatus;
fromAddr: string;
toAddr: string;
+ ccAddr?: string;
+ bccAddr?: string;
+ replyTo?: string;
subject: string;
textBody: string;
read?: boolean;
minutesAgo: number;
providerMessageId?: string;
+ /** Thread id shared with related demo messages; defaults to the provider message id. */
+ threadId?: string;
+ inReplyTo?: string;
+ references?: string;
+ /** When set, stores matching RFC822 source in R2. */
+ raw?: SeedRawMessageOptions;
};
diff --git a/src/lib/seed-utils.ts b/src/lib/seed-utils.ts
index 49f78fd..78981b3 100644
--- a/src/lib/seed-utils.ts
+++ b/src/lib/seed-utils.ts
@@ -12,6 +12,7 @@ import { ensureBookingUsername } from "@/lib/booking/username";
import { upsertContactFromAddress } from "@/lib/contacts/service";
import { buildSnippet } from "@/lib/email/parse";
import { newId } from "@/lib/ids";
+import { buildSeedRawMessage } from "@/lib/seed-raw";
import type {
SeedMailboxKey,
SeedMailboxMap,
@@ -34,7 +35,7 @@ const seedMailboxDefinitions: {
{ key: "billing", localPart: "billing", displayName: "Billing" },
];
-const seedMessages: SeedMessageDefinition[] = [
+export const seedMessages: SeedMessageDefinition[] = [
{
mailbox: "support",
direction: "inbound",
@@ -223,6 +224,134 @@ const seedMessages: SeedMessageDefinition[] = [
read: true,
minutesAgo: 181,
},
+ // Sender-details demo set: threading, Reply-To, impersonation, and auth edge cases.
+ {
+ mailbox: "support",
+ direction: "inbound",
+ status: "received",
+ fromAddr: `"Lumen Recruiting" <[email protected]>`,
+ toAddr: `"Support" <support@${demoDomain}>`,
+ ccAddr: `"Maya Chen" <[email protected]>`,
+ replyTo: `"Lumen Talent" <[email protected]>`,
+ subject: "Application received: Maya Chen",
+ textBody:
+ "We received Maya Chen's application for the platform engineer role. The hiring team will review it and follow up with next steps.",
+ read: false,
+ minutesAgo: 11,
+ providerMessageId: "<[email protected]>",
+ threadId: "<[email protected]>",
+ raw: {
+ trusted: true,
+ signedBy: "lumenhq.test",
+ mailedBy: "lumenhq.test",
+ senderIp: "203.0.113.24",
+ },
+ },
+ {
+ mailbox: "support",
+ direction: "inbound",
+ status: "received",
+ fromAddr: `"Lumen Scheduling" <[email protected]>`,
+ toAddr: `"Support" <support@${demoDomain}>`,
+ replyTo: `"Lumen Talent" <[email protected]>`,
+ subject: "Interview scheduled: Maya Chen",
+ textBody:
+ "Maya Chen's first interview is confirmed for Thursday at 10:00. The calendar invitation includes the meeting link and interviewer list.",
+ read: false,
+ minutesAgo: 7,
+ providerMessageId: "<[email protected]>",
+ threadId: "<[email protected]>",
+ inReplyTo: "<[email protected]>",
+ references: "<[email protected]>",
+ raw: {
+ trusted: true,
+ signedBy: "lumenhq.test",
+ mailedBy: "lumenhq.test",
+ senderIp: "203.0.113.24",
+ },
+ },
+ {
+ mailbox: "billing",
+ direction: "inbound",
+ status: "received",
+ fromAddr: `"Cobalt Finance" <[email protected]>`,
+ toAddr: `"Billing" <billing@${demoDomain}>`,
+ ccAddr: `"Maya Chen" <[email protected]>, "Northwind AP" <[email protected]>`,
+ bccAddr: `"Archive" <[email protected]>`,
+ replyTo: `"Cobalt Accounts" <[email protected]>`,
+ subject: "Invoice 2048 is ready",
+ textBody:
+ "Invoice 2048 is attached to the billing portal. The payment window closes at the end of the month, and the accounts team can answer questions about the purchase order.",
+ read: true,
+ minutesAgo: 38,
+ providerMessageId: "<[email protected]>",
+ raw: {
+ trusted: true,
+ signedBy: "cobalt.test",
+ mailedBy: "cobalt.test",
+ senderIp: "203.0.113.51",
+ },
+ },
+ {
+ mailbox: "billing",
+ direction: "inbound",
+ status: "received",
+ fromAddr: `"Meridian Billing" <[email protected]>`,
+ toAddr: `"Billing" <billing@${demoDomain}>`,
+ replyTo: `"Meridian Payments" <[email protected]>`,
+ subject: "Payment method needs attention",
+ textBody:
+ "The card on file was declined for the latest subscription renewal. Update the payment method before Friday to avoid an interruption.",
+ read: false,
+ minutesAgo: 64,
+ providerMessageId: "<[email protected]>",
+ raw: {
+ trusted: true,
+ signedBy: "meridian.test",
+ mailedBy: "meridian.test",
+ senderIp: "203.0.113.77",
+ },
+ },
+ {
+ mailbox: "support",
+ direction: "inbound",
+ status: "received",
+ toAddr: `"Support" <support@${demoDomain}>`,
+ replyTo: `"Cobalt Security" <[email protected]>`,
+ subject: "Unusual sign-in attempt",
+ textBody:
+ "We blocked a sign-in from an unrecognized device. Confirm your identity and reset your password to protect the account.",
+ read: false,
+ minutesAgo: 92,
+ providerMessageId: "<[email protected]>",
+ raw: {
+ trusted: true,
+ spf: "fail",
+ dkim: "fail",
+ dmarc: "fail",
+ signedBy: "cobalt-secure.test",
+ mailedBy: "cobalt-secure.test",
+ senderIp: "198.51.100.42",
+ tls: "TLSv1.2",
+ },
+ },
+ {
+ mailbox: "support",
+ direction: "inbound",
+ status: "received",
+ fromAddr: `"Vendor Notice" <[email protected]>`,
+ toAddr: `"Support" <support@${demoDomain}>`,
+ subject: "Updated vendor terms",
+ textBody:
+ "Review the updated vendor terms before the next renewal. This demo message carries a forged authentication header but no trusted delivery trace.",
+ read: true,
+ minutesAgo: 126,
+ providerMessageId: "<[email protected]>",
+ raw: {
+ trusted: false,
+ },
+ },
];
export async function ensureDemoUser(env: CloudflareEnv) {
@@ -337,6 +466,12 @@ export async function insertDemoMessages(
const id = newId("msg");
const createdAt = new Date(now - seedMessage.minutesAgo * 60 * 1000);
const mailbox = mailboxMap[seedMessage.mailbox];
+ const rawR2Key = seedMessage.raw ? `seed/${id}.eml` : null;
+ if (rawR2Key) {
+ await env.BUCKET.put(rawR2Key, buildSeedRawMessage(seedMessage, createdAt), {
+ httpMetadata: { contentType: "message/rfc822" },
+ });
+ }
await db.insert(messages).values({
id,
@@ -346,13 +481,19 @@ export async function insertDemoMessages(
providerMessageId: seedMessage.providerMessageId ?? null,
fromAddr: seedMessage.fromAddr,
toAddr: seedMessage.toAddr,
+ ccAddr: seedMessage.ccAddr ?? null,
+ bccAddr: seedMessage.bccAddr ?? null,
+ replyTo: seedMessage.replyTo ?? null,
subject: seedMessage.subject,
snippet: buildSnippet(seedMessage.textBody, null),
textBody: seedMessage.textBody,
htmlBody: null,
+ rawR2Key,
status: seedMessage.status,
read: seedMessage.read ?? true,
- threadId: seedMessage.providerMessageId ?? null,
+ threadId: seedMessage.threadId ?? seedMessage.providerMessageId ?? null,
+ inReplyTo: seedMessage.inReplyTo ?? null,
+ references: seedMessage.references ?? null,
createdAt,
});
diff --git a/tests/authentication-details.test.mjs b/tests/authentication-details.test.mjs
new file mode 100644
index 0000000..5d5ef33
--- /dev/null
+++ b/tests/authentication-details.test.mjs
@@ -0,0 +1,163 @@
+import assert from "node:assert/strict";
+import { mkdtempSync, rmSync } from "node:fs";
+import { tmpdir } from "node:os";
+import { dirname, join } from "node:path";
+import test, { after } from "node:test";
+import { fileURLToPath, pathToFileURL } from "node:url";
+import { build } from "esbuild";
+
+const root = join(dirname(fileURLToPath(import.meta.url)), "..");
+const outDir = mkdtempSync(join(tmpdir(), "mailflare-authentication-test-"));
+after(() => rmSync(outDir, { recursive: true, force: true }));
+
+await build({
+ stdin: {
+ contents: [
+ `export { readSesAuthentication, readSesTrace } from "./src/lib/email/provider-trace";`,
+ `export { getSenderWarning } from "./src/components/messages/message-details-utils";`,
+ ].join("\n"),
+ resolveDir: root,
+ loader: "ts",
+ },
+ outfile: join(outDir, "entry.mjs"),
+ bundle: true,
+ platform: "node",
+ format: "esm",
+ target: "node22",
+ logLevel: "silent",
+});
+
+const provider = await import(pathToFileURL(join(outDir, "entry.mjs")).href);
+const encoder = new TextEncoder();
+const raw = (text) => encoder.encode(text.replace(/\n/g, "\r\n")).buffer;
+
+const sesHeaders = `Return-Path: <[email protected]>
+Received: from mail.example.com (mail.example.com [203.0.113.5]) by inbound-smtp.us-east-1.amazonaws.com with SMTP id abc (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) for <[email protected]>; Thu, 29 Oct 2026 06:54:00 +0000
+Authentication-Results: amazonses.com; spf=pass (sender IP is 203.0.113.5) smtp.mailfrom=example.com; dkim=pass header.d=example.com [email protected]; dmarc=pass header.from=example.com;
+X-SES-Spam-Verdict: PASS
+X-SES-Virus-Verdict: PASS
+X-SES-Receipt: abc`;
+
+test("trusted SES headers expose authentication results and connection metadata", () => {
+ const authentication = provider.readSesAuthentication(raw(`${sesHeaders}
+From: "Ashby Recruiting" <[email protected]>
+Subject: Hello
+
+Body`), "[email protected]");
+
+ assert.ok(authentication);
+ assert.deepEqual(authentication.spf, { status: "PASS", detail: "IP 203.0.113.5" });
+ assert.deepEqual(authentication.dkim, { status: "PASS", detail: "d=example.com" });
+ assert.deepEqual(authentication.dmarc, { status: "PASS", detail: "header.from=example.com" });
+ assert.equal(authentication.signedBy, "example.com");
+ assert.equal(authentication.mailedBy, "example.com");
+ assert.equal(authentication.senderIp, "203.0.113.5");
+ assert.equal(authentication.encryption, "TLS 1.3");
+ assert.equal(authentication.aligned, true);
+});
+
+test("failed results are reported without pretending the sender is verified", () => {
+ const authentication = provider.readSesAuthentication(raw(`Return-Path: <[email protected]>
+Authentication-Results: amazonses.com; spf=fail smtp.mailfrom=esp.example.net; dkim=fail header.d=esp.example.net; dmarc=fail header.from=example.com;
+X-SES-Receipt: abc
+From: Example <[email protected]>
+
+Body`), "[email protected]");
+
+ assert.ok(authentication);
+ assert.equal(authentication.spf.status, "FAIL");
+ assert.equal(authentication.dkim.status, "FAIL");
+ assert.equal(authentication.dmarc.status, "FAIL");
+ assert.equal(authentication.aligned, null);
+});
+
+test("a passing aligned signature wins over an earlier failing one", () => {
+ const authentication = provider.readSesAuthentication(raw(`Authentication-Results: amazonses.com; spf=fail smtp.mailfrom=esp.example.net; dkim=fail header.d=esp.example.net; dkim=pass header.d=example.com; dmarc=pass header.from=example.com;
+X-SES-Receipt: abc
+From: Example <[email protected]>
+
+Body`), "[email protected]");
+
+ assert.ok(authentication);
+ assert.equal(authentication.spf.status, "FAIL");
+ assert.deepEqual(authentication.dkim, { status: "PASS", detail: "d=example.com" });
+ assert.equal(authentication.signedBy, "example.com");
+ assert.equal(authentication.aligned, true);
+});
+
+test("header.i identities are reduced to their signing domain", () => {
+ const authentication = provider.readSesAuthentication(raw(`Authentication-Results: amazonses.com; dkim=pass [email protected]; dmarc=pass header.from=example.com;
+X-SES-Receipt: abc
+From: Example <[email protected]>
+
+Body`), "[email protected]");
+
+ assert.ok(authentication);
+ assert.equal(authentication.signedBy, "example.com");
+ assert.deepEqual(authentication.dkim, { status: "PASS", detail: "d=example.com" });
+ assert.equal(authentication.aligned, true);
+});
+
+test("unrelated registrations under a shared suffix are not treated as aligned", () => {
+ const authentication = provider.readSesAuthentication(raw(`Authentication-Results: amazonses.com; dkim=pass header.d=attacker.co.ke; dmarc=fail header.from=victim.co.ke;
+X-SES-Receipt: abc
+From: Victim <[email protected]>
+
+Body`), "[email protected]");
+
+ assert.ok(authentication);
+ assert.equal(authentication.signedBy, "attacker.co.ke");
+ assert.equal(authentication.aligned, false);
+});
+
+test("messages without a trusted SES trace report no authentication", () => {
+ const withoutReceipt = raw(`Authentication-Results: amazonses.com; spf=pass dkim=pass dmarc=pass
+
+Body`);
+ assert.equal(provider.readSesAuthentication(withoutReceipt, "[email protected]"), null);
+
+ const forgedAfterOtherHeader = raw(`From: [email protected]
+Authentication-Results: amazonses.com; spf=pass dkim=pass dmarc=pass
+X-SES-Receipt: abc
+
+Body`);
+ assert.equal(provider.readSesAuthentication(forgedAfterOtherHeader, "[email protected]"), null);
+
+ const otherProvider = raw(`Authentication-Results: mx.cloudflare.net; spf=pass dkim=pass dmarc=pass
+X-SES-Receipt: abc
+
+Body`);
+ assert.equal(provider.readSesAuthentication(otherProvider, "[email protected]"), null);
+});
+
+test("the existing SES trace keeps the same verdicts and sender IP", () => {
+ const trace = provider.readSesTrace(raw(`${sesHeaders}
+
+Body`));
+ assert.deepEqual(trace.verdicts, { spf: "PASS", dkim: "PASS", dmarc: "PASS", spam: "PASS", virus: "PASS" });
+ assert.equal(trace.senderIp, "203.0.113.5");
+});
+
+test("DMARC-passing mail across sibling subdomains does not raise a sender warning", () => {
+ const authentication = provider.readSesAuthentication(raw(`Authentication-Results: amazonses.com; spf=pass smtp.mailfrom=bounce.mail.example.com; dkim=pass header.d=mail.example.com; dmarc=pass header.from=news.example.com;
+X-SES-Receipt: abc
+From: News <[email protected]>
+
+Body`), "[email protected]");
+
+ assert.ok(authentication);
+ assert.equal(authentication.dmarc.status, "PASS");
+ // The conservative signature matcher sees siblings as unrelated; DMARC proves alignment.
+ assert.equal(authentication.aligned, false);
+ assert.equal(
+ provider.getSenderWarning(
+ { direction: "inbound", fromAddr: "News <[email protected]>", replyTo: null },
+ { available: true, ...authentication },
+ ),
+ null,
+ );
+});
diff --git a/tests/message-details.test.mjs b/tests/message-details.test.mjs
new file mode 100644
index 0000000..6dbbd3a
--- /dev/null
+++ b/tests/message-details.test.mjs
@@ -0,0 +1,183 @@
+import assert from "node:assert/strict";
+import { mkdtempSync, rmSync } from "node:fs";
+import { tmpdir } from "node:os";
+import { dirname, join } from "node:path";
+import test, { after } from "node:test";
+import { fileURLToPath, pathToFileURL } from "node:url";
+import { build } from "esbuild";
+
+const root = join(dirname(fileURLToPath(import.meta.url)), "..");
+const outDir = mkdtempSync(join(tmpdir(), "mailflare-message-details-test-"));
+after(() => rmSync(outDir, { recursive: true, force: true }));
+
+await build({
+ stdin: {
+ contents: [
+ `export { getOriginalSender, getReplyToEntries, getSenderWarning, hasFailingAuthenticationCheck, hasPassingAuthenticationCheck, hasSenderNameAddressMismatch, isReplyToDifferent } from "./src/components/messages/message-details-utils";`,
+ ].join("\n"),
+ resolveDir: root,
+ loader: "ts",
+ },
+ outfile: join(outDir, "entry.mjs"),
+ bundle: true,
+ platform: "node",
+ format: "esm",
+ target: "node22",
+ logLevel: "silent",
+ alias: { "@": join(root, "src") },
+});
+
+const details = await import(pathToFileURL(join(outDir, "entry.mjs")).href);
+
+test("the original sender keeps the name and address from the message header", () => {
+ assert.deepEqual(details.getOriginalSender('"Ashby Recruiting" <[email protected]>'), {
+ name: "Ashby Recruiting",
+ address: "[email protected]",
+ label: "Ashby Recruiting <[email protected]>",
+ });
+ assert.deepEqual(details.getOriginalSender("[email protected]"), {
+ name: null,
+ address: "[email protected]",
+ label: "[email protected]",
+ });
+});
+
+test("a Reply-To on another domain is called out", () => {
+ assert.equal(details.isReplyToDifferent({ fromAddr: "Support <[email protected]>", replyTo: "[email protected]" }), false);
+ assert.equal(details.isReplyToDifferent({ fromAddr: "Support <[email protected]>", replyTo: "[email protected]" }), false);
+ assert.equal(details.isReplyToDifferent({ fromAddr: "Support <[email protected]>", replyTo: "[email protected]" }), false);
+ assert.equal(details.isReplyToDifferent({ fromAddr: "Support <[email protected]>", replyTo: "[email protected]" }), false);
+ assert.equal(details.isReplyToDifferent({ fromAddr: "Support <[email protected]>", replyTo: "[email protected]" }), true);
+ // Two registrations under a shared two-label suffix are different owners.
+ assert.equal(details.isReplyToDifferent({ fromAddr: "Support <[email protected]>", replyTo: "[email protected]" }), true);
+ assert.equal(details.isReplyToDifferent({ fromAddr: "Support <[email protected]>", replyTo: null }), false);
+ assert.equal(details.isReplyToDifferent({ fromAddr: "Support <[email protected]>", replyTo: "" }), false);
+});
+
+test("a display name carrying another email address raises a warning", () => {
+ assert.equal(details.hasSenderNameAddressMismatch({ fromAddr: '"[email protected]" <[email protected]>' }), true);
+ assert.equal(details.hasSenderNameAddressMismatch({ fromAddr: '"PayPal [email protected]" <[email protected]>' }), true);
+ assert.equal(details.hasSenderNameAddressMismatch({ fromAddr: '"PayPal Support" <[email protected]>' }), false);
+ assert.equal(details.hasSenderNameAddressMismatch({ fromAddr: "[email protected]" }), false);
+});
+
+test("Reply-To entries keep display names intact", () => {
+ assert.deepEqual(
+ details.getReplyToEntries('"Replies, Inc." <[email protected]>, [email protected]'),
+ ['"Replies, Inc." <[email protected]>', "[email protected]"],
+ );
+});
+
+function authentication(overrides = {}) {
+ return {
+ available: true,
+ spf: { status: "PASS", detail: null },
+ dkim: { status: "PASS", detail: null },
+ dmarc: { status: "PASS", detail: null },
+ signedBy: "example.com",
+ mailedBy: "example.com",
+ senderIp: null,
+ encryption: null,
+ aligned: true,
+ ...overrides,
+ };
+}
+
+function message(overrides = {}) {
+ return {
+ direction: "inbound",
+ fromAddr: "Support <[email protected]>",
+ replyTo: null,
+ ...overrides,
+ };
+}
+
+test("a clean message needs no surface warning", () => {
+ assert.equal(details.getSenderWarning(message(), authentication()), null);
+ assert.equal(details.getSenderWarning(message(), { available: false, reason: "untrusted" }), null);
+ // Outbound mail is not an inbound impersonation warning.
+ assert.equal(details.getSenderWarning(message({
+ direction: "outbound",
+ }), authentication()), null);
+});
+
+test("a failed sender authentication is surfaced without opening details", () => {
+ assert.deepEqual(
+ details.getSenderWarning(message(), authentication({ dmarc: { status: "FAIL", detail: null } })),
+ { level: "warning", reasons: ["authentication"] },
+ );
+ assert.deepEqual(
+ details.getSenderWarning(message(), authentication({
+ dmarc: null,
+ spf: { status: "FAIL", detail: null },
+ dkim: { status: "FAIL", detail: null },
+ })),
+ { level: "warning", reasons: ["authentication"] },
+ );
+});
+
+test("a passing DMARC result is not overruled by a forwarded SPF failure", () => {
+ assert.equal(
+ details.getSenderWarning(message(), authentication({ spf: { status: "FAIL", detail: null } })),
+ null,
+ );
+ assert.equal(
+ details.getSenderWarning(message(), authentication({
+ dmarc: null,
+ spf: { status: "FAIL", detail: null },
+ dkim: { status: "PASS", detail: null },
+ })),
+ null,
+ );
+});
+
+test("sender-name and cross-domain Reply-To warnings survive a passing authentication", () => {
+ assert.deepEqual(
+ details.getSenderWarning(message({
+ replyTo: '"Help" <[email protected]>',
+ }), authentication()),
+ { level: "warning", reasons: ["senderName", "replyTo"] },
+ );
+});
+
+test("an unaligned signature is called out only when DMARC has not passed", () => {
+ assert.equal(details.getSenderWarning(message(), authentication({ aligned: false })), null);
+ assert.deepEqual(
+ details.getSenderWarning(message(), authentication({
+ aligned: false,
+ dmarc: null,
+ dkim: { status: "PASS", detail: null },
+ spf: { status: "PASS", detail: null },
+ })),
+ { level: "warning", reasons: ["domain"] },
+ );
+ assert.deepEqual(
+ details.getSenderWarning(message(), authentication({
+ aligned: false,
+ dmarc: { status: "FAIL", detail: null },
+ })),
+ { level: "warning", reasons: ["authentication"] },
+ );
+});
+
+test("authentication notes depend on which checks passed or failed", () => {
+ assert.equal(details.hasPassingAuthenticationCheck(authentication()), true);
+ assert.equal(details.hasFailingAuthenticationCheck(authentication()), false);
+
+ const failed = authentication({
+ spf: { status: "FAIL", detail: null },
+ dkim: { status: "FAIL", detail: null },
+ dmarc: { status: "FAIL", detail: null },
+ });
+ assert.equal(details.hasPassingAuthenticationCheck(failed), false);
+ assert.equal(details.hasFailingAuthenticationCheck(failed), true);
+
+ const mixed = authentication({ spf: { status: "FAIL", detail: null } });
+ assert.equal(details.hasPassingAuthenticationCheck(mixed), true);
+ assert.equal(details.hasFailingAuthenticationCheck(mixed), true);
+
+ assert.equal(details.hasPassingAuthenticationCheck({ available: false, reason: "untrusted" }), false);
+ assert.equal(details.hasFailingAuthenticationCheck({ available: false, reason: "untrusted" }), false);
+});
diff --git a/tests/seed-raw.test.mjs b/tests/seed-raw.test.mjs
new file mode 100644
index 0000000..aecff3b
--- /dev/null
+++ b/tests/seed-raw.test.mjs
@@ -0,0 +1,180 @@
+import assert from "node:assert/strict";
+import { mkdtempSync, rmSync } from "node:fs";
+import { tmpdir } from "node:os";
+import { dirname, join } from "node:path";
+import test, { after } from "node:test";
+import { fileURLToPath, pathToFileURL } from "node:url";
+import { build } from "esbuild";
+
+const root = join(dirname(fileURLToPath(import.meta.url)), "..");
+const outDir = mkdtempSync(join(tmpdir(), "mailflare-seed-raw-test-"));
+after(() => rmSync(outDir, { recursive: true, force: true }));
+
+await build({
+ stdin: {
+ contents: [
+ `export { buildSeedRawMessage } from "./src/lib/seed-raw";`,
+ `export { readSesAuthentication } from "./src/lib/email/provider-trace";`,
+ `export { getSenderWarning } from "./src/components/messages/message-details-utils";`,
+ `export { seedMessages } from "./src/lib/seed-utils";`,
+ ].join("\n"),
+ resolveDir: root,
+ loader: "ts",
+ },
+ outfile: join(outDir, "entry.mjs"),
+ bundle: true,
+ platform: "node",
+ format: "esm",
+ target: "node22",
+ logLevel: "silent",
+});
+
+const seed = await import(pathToFileURL(join(outDir, "entry.mjs")).href);
+const createdAt = new Date("2026-10-29T10:00:00Z");
+const encoder = new TextEncoder();
+
+function message(overrides = {}) {
+ return {
+ mailbox: "support",
+ direction: "inbound",
+ status: "received",
+ fromAddr: `"Lumen Recruiting" <[email protected]>`,
+ toAddr: `"Support" <[email protected]>`,
+ ccAddr: `"Maya Chen" <[email protected]>`,
+ bccAddr: `"Archive" <[email protected]>`,
+ replyTo: `"Lumen Talent" <[email protected]>`,
+ subject: "Application received: Maya Chen",
+ textBody: "The hiring team will follow up with next steps.",
+ read: false,
+ minutesAgo: 11,
+ providerMessageId: "<[email protected]>",
+ threadId: "<[email protected]>",
+ inReplyTo: "<[email protected]>",
+ references: "<[email protected]>",
+ raw: {
+ trusted: true,
+ signedBy: "lumenhq.test",
+ mailedBy: "lumenhq.test",
+ senderIp: "203.0.113.24",
+ },
+ ...overrides,
+ };
+}
+
+function rawBytes(seedMessage) {
+ return encoder.encode(seed.buildSeedRawMessage(seedMessage, createdAt)).buffer;
+}
+
+// Mirrors the API shape: trusted results are wrapped in `available`.
+function asApiAuthentication(authentication) {
+ return authentication ? { available: true, ...authentication } : { available: false, reason: "untrusted" };
+}
+
+test("a trusted seed message produces readable message headers and authentication", () => {
+ const source = seed.buildSeedRawMessage(message(), createdAt);
+ assert.match(source, /^Return-Path: <bounce@lumenhq\.test>/);
+ assert.match(source, /\r\nCc: "Maya Chen" <maya@acme\.test>/);
+ assert.match(source, /\r\nBcc: "Archive" <archive@example\.com>/);
+ assert.match(source, /\r\nReply-To: "Lumen Talent" <reply@lumenhq\.test>/);
+ assert.match(source, /\r\nIn-Reply-To: <seed-lumen-parent@example\.test>/);
+ assert.match(source, /\r\nMessage-ID: <seed-lumen-received@example\.test>/);
+
+ const authentication = seed.readSesAuthentication(rawBytes(message()), "[email protected]");
+ assert.ok(authentication);
+ assert.equal(authentication.spf.status, "PASS");
+ assert.equal(authentication.dkim.status, "PASS");
+ assert.equal(authentication.dmarc.status, "PASS");
+ assert.equal(authentication.signedBy, "lumenhq.test");
+ assert.equal(authentication.mailedBy, "lumenhq.test");
+ assert.equal(authentication.senderIp, "203.0.113.24");
+ assert.equal(authentication.encryption, "TLS 1.3");
+ assert.equal(authentication.aligned, true);
+});
+
+test("a failing seed message reflects the failure in the details panel", () => {
+ const authentication = seed.readSesAuthentication(rawBytes(message({
+ raw: {
+ trusted: true,
+ spf: "fail",
+ dkim: "fail",
+ dmarc: "fail",
+ signedBy: "cobalt-secure.test",
+ mailedBy: "cobalt-secure.test",
+ senderIp: "198.51.100.42",
+ tls: "TLSv1.2",
+ },
+
+ assert.ok(authentication);
+ assert.equal(authentication.spf.status, "FAIL");
+ assert.equal(authentication.dkim.status, "FAIL");
+ assert.equal(authentication.dmarc.status, "FAIL");
+ assert.equal(authentication.encryption, "TLS 1.2");
+ assert.equal(authentication.aligned, null);
+});
+
+test("the seeded sender-details demo set has the intended shape", () => {
+ const byProviderId = new Map(seed.seedMessages.map((message) => [message.providerMessageId, message]));
+ const received = byProviderId.get("<[email protected]>");
+ const scheduled = byProviderId.get("<[email protected]>");
+ assert.ok(received && scheduled);
+
+ assert.equal(received.threadId, scheduled.threadId);
+ assert.notEqual(received.fromAddr, scheduled.fromAddr);
+ assert.equal(received.fromAddr.match(/<([^>]+)>/)?.[1], scheduled.fromAddr.match(/<([^>]+)>/)?.[1]);
+ assert.equal(scheduled.inReplyTo, received.providerMessageId);
+ assert.equal(received.replyTo, scheduled.replyTo);
+
+ const receivedAuth = asApiAuthentication(seed.readSesAuthentication(rawBytes(received), "[email protected]"));
+ const scheduledAuth = asApiAuthentication(seed.readSesAuthentication(rawBytes(scheduled), "[email protected]"));
+ assert.equal(receivedAuth?.dmarc?.status, "PASS");
+ assert.equal(scheduledAuth?.dkim?.status, "PASS");
+ assert.equal(seed.getSenderWarning(received, receivedAuth), null);
+ assert.equal(seed.getSenderWarning(scheduled, scheduledAuth), null);
+
+ const cobalt = byProviderId.get("<[email protected]>");
+ assert.ok(cobalt);
+ assert.ok(cobalt.ccAddr?.includes("Northwind AP"));
+ assert.ok(cobalt.bccAddr?.includes("Archive"));
+ assert.match(cobalt.replyTo ?? "", /<accounts@cobalt\.test>$/);
+ assert.equal(seed.getSenderWarning(cobalt, asApiAuthentication(seed.readSesAuthentication(rawBytes(cobalt), "[email protected]"))), null);
+
+ const meridian = byProviderId.get("<[email protected]>");
+ assert.ok(meridian);
+ assert.match(meridian.replyTo ?? "", /@meridian-payments\.test/);
+ assert.deepEqual(
+ seed.getSenderWarning(meridian, asApiAuthentication(seed.readSesAuthentication(rawBytes(meridian), "[email protected]"))),
+ { level: "warning", reasons: ["replyTo"] },
+ );
+
+ const impersonation = byProviderId.get("<[email protected]>");
+ assert.ok(impersonation);
+ assert.match(impersonation.fromAddr, /^"security@cobaltbank\.test"/);
+ const impersonationAuth = asApiAuthentication(seed.readSesAuthentication(rawBytes(impersonation), "[email protected]"));
+ assert.equal(impersonationAuth?.dmarc?.status, "FAIL");
+ assert.deepEqual(
+ seed.getSenderWarning(impersonation, impersonationAuth),
+ { level: "warning", reasons: ["authentication", "senderName", "replyTo"] },
+ );
+
+ const vendor = byProviderId.get("<[email protected]>");
+ assert.ok(vendor);
+ assert.equal(vendor.raw?.trusted, false);
+ const vendorAuth = asApiAuthentication(seed.readSesAuthentication(rawBytes(vendor), "[email protected]"));
+ assert.equal(vendorAuth.available, false);
+ assert.equal(seed.getSenderWarning(vendor, vendorAuth), null);
+});
+
+test("an untrusted seed message keeps forged authentication unavailable", () => {
+ const untrusted = message({
+ fromAddr: `"Vendor Notice" <[email protected]>`,
+ replyTo: null,
+ ccAddr: null,
+ bccAddr: null,
+ raw: { trusted: false },
+ });
+ const source = seed.buildSeedRawMessage(untrusted, createdAt);
+ assert.match(source, /^Authentication-Results: amazonses\.com;/);
+ assert.equal(seed.readSesAuthentication(rawBytes(untrusted), "[email protected]"), null);
+});
diff --git a/tests/sender-check-notice.test.mjs b/tests/sender-check-notice.test.mjs
new file mode 100644
index 0000000..630b352
--- /dev/null
+++ b/tests/sender-check-notice.test.mjs
@@ -0,0 +1,69 @@
+import assert from "node:assert/strict";
+import { mkdtempSync, rmSync } from "node:fs";
+import { tmpdir } from "node:os";
+import { dirname, join } from "node:path";
+import test, { after } from "node:test";
+import { fileURLToPath, pathToFileURL } from "node:url";
+import { build } from "esbuild";
+
+const root = join(dirname(fileURLToPath(import.meta.url)), "..");
+const outDir = mkdtempSync(join(tmpdir(), "mailflare-sender-notice-"));
+after(() => rmSync(outDir, { recursive: true, force: true }));
+
+await build({
+ stdin: {
+ contents: `
+ import { createElement } from "react";
+ import { renderToStaticMarkup } from "react-dom/server";
+ import { SenderCheckNotice } from "./src/components/messages/sender-check-notice";
+ export function render(message, open = false, authentication = null) {
+ globalThis.testSenderAuthentication = authentication;
+ return renderToStaticMarkup(createElement(SenderCheckNotice, {
+ message, detailsOpen: open, onViewDetails() {}, announce: true,
+ }));
+ }
+ `,
+ resolveDir: root,
+ loader: "tsx",
+ },
+ outfile: join(outDir, "entry.mjs"),
+ bundle: true,
+ platform: "node",
+ format: "esm",
+ target: "node22",
+ logLevel: "silent",
+ alias: { "@": join(root, "src") },
+ banner: { js: 'import { createRequire } from "node:module"; const require = createRequire(import.meta.url);' },
+ plugins: [{
+ name: "authentication-state",
+ setup(builder) {
+ builder.onLoad({ filter: /\/use-message-authentication\.ts$/ }, () => ({
+ contents: "export function useMessageAuthentication() { return { authentication: globalThis.testSenderAuthentication }; }",
+ loader: "ts",
+ }));
+ },
+ }],
+});
+
+const { render } = await import(pathToFileURL(join(outDir, "entry.mjs")).href);
+const message = { id: "test", direction: "inbound", fromAddr: '"[email protected]" <[email protected]>', replyTo: "[email protected]" };
+
+test("sender notice is one compact disclosure without duplicated warning reasons", () => {
+ const html = render(message);
+ assert.match(html, /<button[^>]*aria-expanded="false"/);
+ assert.match(html, /Sender checks need attention/);
+ assert.doesNotMatch(html, /<ul|<li|sender name contains|Replies to this message|Review sender details|Be cautious/);
+});
+
+test("sender notice stays available when details are open", () => {
+ const html = render(message, true);
+ assert.match(html, /<button[^>]*aria-expanded="true"/);
+ assert.match(html, /rotate-180/);
+});
+
+test("clean messages retain an empty live region for late authentication warnings", () => {
+ const clean = { ...message, fromAddr: "[email protected]", replyTo: null };
+ assert.equal(render(clean), '<div role="status"></div>');
+ assert.match(render(clean, false, { available: true, dmarc: { status: "FAIL" } }), /<button/);
+ assert.doesNotMatch(render({ ...message, direction: "outbound" }), /<button/);
+});