{% extends "base.html" %} {% block title %}Email Log{% endblock %} {% block content %}

Email Log

{% if filter_status or filter_sender_type or filter_classification or filter_q %} Clear {% endif %}
{% for e in entries %} {% else %} {% endfor %}
Received Sender Subject Type Classification Conf Action Status
{{ e.received_at.strftime('%Y-%m-%d %H:%M') if e.received_at else '—' }}
{{ e.sender_address }}
{% if e.sender_name %}
{{ e.sender_name }}
{% endif %}
{{ e.subject or '—' }} {{ e.sender_type }} {{ classification_labels.get(e.llm_classification, e.llm_classification or '—') }} {% if e.llm_confidence is not none %} {{ (e.llm_confidence * 100)|int }}% {% else %}—{% endif %} {{ action_labels.get(e.final_action, e.final_action) }} {% if e.action_overridden %}{% endif %} {% if e.status == 'completed' %}done {% elif e.status == 'failed' %}failed {% elif e.status == 'processing' %}processing {% elif e.status == 'skipped' %}skipped {% else %}{{ e.status }}{% endif %}
No entries match your filters.
{% if total_pages > 1 %}
Showing {{ ((page - 1) * per_page) + 1 }}–{{ [page * per_page, total] | min }} of {{ total }}
{% if page > 1 %} « {% endif %} {% for p in range([1, page - 2] | max, [total_pages + 1, page + 3] | min) %} {{ p }} {% endfor %} {% if page < total_pages %} » {% endif %}
{% else %}

{{ total }} result{{ 's' if total != 1 else '' }}

{% endif %}
{% endblock %}