diff --git a/app/admin/sync/mimecast/page.tsx b/app/admin/sync/mimecast/page.tsx index 1411c9e..5fb4c8d 100644 --- a/app/admin/sync/mimecast/page.tsx +++ b/app/admin/sync/mimecast/page.tsx @@ -1271,8 +1271,8 @@ function DeliveredMailTab() { ); const statuses = [...new Set(messages.map(m => m.status).filter(Boolean))].sort(); - const highRisk = messages.filter(m => (m.spamScore ?? 0) >= 10).length; - const medRisk = messages.filter(m => (m.spamScore ?? 0) >= 5 && (m.spamScore ?? 0) < 10).length; + const highRisk = messages.filter(m => (m.spamScore ?? 0) >= 10 || detectSubjectThreat(m.subject) !== null).length; + const medRisk = messages.filter(m => (m.spamScore ?? 0) >= 5 && (m.spamScore ?? 0) < 10 && detectSubjectThreat(m.subject) === null).length; return (