📧
Spam Email Classification Dashboard
AI-powered email analysis with continuous learning from your feedback
📊
Total Emails
{{ stats.total }}
🚫
Spam
{{ stats.spam }}
✅
Ham
{{ stats.ham }}
⚠️
Undecided
{{ stats.undecided }}
🤖
Model Accuracy
{{ model_accuracy }}%
{% if emails is not defined or emails|length == 0 %}
📭
No emails found
{% else %} {% for email in emails %}
{{ email.subject or 'No Subject' }}
{{ email.sender }}
{% if email.label == "spam" %}
🚫 Spam
{% elif email.label == "ham" %}
✅ Ham
{% elif email.label == "undecided" %}
⚠️ Undecided
⬇
{% endif %}
Summary:
{% if email.summary %} {% if email.summary|length > 150 %} {{ email.summary[:150] }}...
read more
{% else %} {{ email.summary }} {% endif %} {% else %} No content available {% endif %}
Summary:
{% if email.summary %} {% set is_html = '<' in email.summary and '>' in email.summary %} {% if is_html %}
(HTML content -
view full details
)
{% else %} {% if email.summary|length > 200 %} {{ email.summary[:200] }}...
read more
{% else %} {{ email.summary }} {% endif %} {% endif %} {% else %} No content available {% endif %}
{% if email.analysis %}
Analysis
{{ email.analysis }}
{% endif %}
{% endfor %} {% endif %}
⏳ Loading more emails...