{% extends "base.html" %} {% block title %}Quarantine{% endblock %} {% block extra_head %} {% endblock %} {% block content %} {% if held_domains is defined and held_domains %} {% endif %}

{% if view == 'recent' %} Recent Messages Last 24 hours {% elif view == 'day' %} {{ title }} {% elif view == 'search' %} Search {% else %} Quarantine {% endif %}

{% if total is defined and total is not none %} {{ total }} message{{ 's' if total != 1 else '' }} found {% endif %}
{% if view == 'search' %}
Clear
{% elif view != 'all' %}
Clear
{% else %}
{% if node_names is defined and node_names %}
{% endif %}
{% endif %}
{% if not current_user.is_mailbox_user %}
{% endif %}
{% if not current_user.is_mailbox_user %}{% endif %} {% if node_names is defined and node_names %}{% endif %} {% if emails %} {% for email in emails %} {% if not current_user.is_mailbox_user %} {% endif %} {% if node_names is defined and node_names %} {% endif %} {% set rcpts = email.recipients_json if email.recipients_json else ([email.recipient] if email.recipient else []) %} {% endfor %} {% else %} {% endif %}
ID DateNodeFrom To Subject Score Status Dir Actions
{{ email.id }} {{ email.received_at.strftime('%Y-%m-%d %H:%M') if email.received_at else '-' }} {{ (email.node_hostname or '').split('.')[0] or '-' }} {{ email.sender | default('-') }} {% if rcpts %} {{ rcpts[0] }}{% if rcpts | length > 1 %} (+{{ rcpts | length - 1 }} more){% endif %} {% else %} - {% endif %} {{ email.subject | default('(no subject)') }} {% set score = email.rspamd_score | default(0) | float %} {% if score < 4 %} {{ '%.2f' % score }} {% elif score < 6 %} {{ '%.2f' % score }} {% elif score < 15 %} {{ '%.2f' % score }} {% else %} {{ '%.2f' % score }} {% endif %} {% set status = email.status | default('') %} {% if status == 'clean' %} Clean {% elif status == 'spam' %} Spam {% elif status == 'review' %} Review {% elif status == 'released' %} Released {% elif status == 'deleted' %} Deleted {% else %} {{ status | capitalize }} {% endif %} {{ 'IN' if email.direction == 'inbound' else 'OUT' }}
{% if email.status != 'released' %} {% endif %} {% if email.status != 'deleted' %} {% endif %}
{% if view == 'search' and not searched %} Select a field and enter a value to search. {% else %} No messages match your filters. {% endif %}
{% if pagination is defined and pagination and pagination.pages > 1 %} {% endif %} {% endblock %} {% block extra_scripts %} {% endblock %}