{% extends "base.html" %} {% block title %}Message #{{ email.id }}{% endblock %} {% block extra_head %} {% endblock %} {% block content %}
Back to List
Message Details
{% set score = email.rspamd_score | default(0) | float %} {% if score < 4 %} Score: {{ '%.2f' % score }} {% elif score < 6 %} Score: {{ '%.2f' % score }} {% elif score < 15 %} Score: {{ '%.2f' % score }} {% else %} Score: {{ '%.2f' % score }} {% endif %} {% if email.rspamd_action %} {{ email.rspamd_action }} {% 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 {% endif %}
{% if cc_header %} {% endif %}
From {% set fh = from_header %} {% if fh %} {{ fh }}
env: {{ email.sender | default('-') }}
{% else %} {{ email.sender | default('-') }} {% endif %}
To {% set rcpts = email.recipients_json if email.recipients_json else ([email.recipient] if email.recipient else []) %} {% if rcpts %} {% for r in rcpts %}
{{ r }}
{% endfor %} {% else %} - {% endif %}
Cc {{ cc_header }}
Date {{ email.received_at.strftime('%Y-%m-%d %H:%M:%S') if email.received_at else '-' }}
Subject {{ email.subject | default('(no subject)') }}
Client IP {{ email.client_ip | default('-') }}
Message-ID {{ email.message_id | default('-') }}
Size {% if email.raw_size_bytes %} {% if email.raw_size_bytes >= 1048576 %} {{ '%.2f' % (email.raw_size_bytes / 1048576) }} MB {% elif email.raw_size_bytes >= 1024 %} {{ '%.1f' % (email.raw_size_bytes / 1024) }} KB {% else %} {{ email.raw_size_bytes }} bytes {% endif %} {% else %}-{% endif %}
{% if email.rspamd_symbols %}
{% for sym in email.rspamd_symbols %} {% set sym_score = sym.score | default(0) | float %} {% endfor %}
Symbol Score Description
{{ sym.name | default('') }} {{ '%+.2f' % sym_score }} {{ sym.description | default('') }}
{% endif %}
{{ headers_text if headers_text else 'No header data available.' }}
{% if email.text_body %}
{{ email.text_body }}
{% else %}

No text body available.

{% endif %}
{% if email.html_body %} {% else %}

No HTML body available.

{% endif %}
{% if email.has_attachments and email.attachments_json %}
Attachments {{ email.attachments_json | length }}
{% if current_user.is_superadmin %}{% endif %} {% for att in email.attachments_json %} {% if current_user.is_superadmin %} {% endif %} {% endfor %}
Filename Size Type
{{ att.filename | default('unknown') }} {% if att.size_bytes %} {% if att.size_bytes >= 1048576 %}{{ '%.2f' % (att.size_bytes / 1048576) }} MB {% elif att.size_bytes >= 1024 %}{{ '%.1f' % (att.size_bytes / 1024) }} KB {% else %}{{ att.size_bytes }} B{% endif %} {% else %}-{% endif %} {{ att.content_type | default('-') }} Download
{% endif %}
Actions
{% if email.status in ('released', 'clean') %} {% if email.released_at %}
{{ email.released_at.strftime('%Y-%m-%d %H:%M') }} {% if email.releaser %}— {{ email.releaser.username }}{% endif %}
{% elif email.status == 'clean' %}
Auto-released (scored clean)
{% endif %} {% else %}
{% endif %} {% if email.is_manually_marked and email.manually_marked_as == 'spam' %} {% if email.marked_at %}
{{ email.marked_at.strftime('%Y-%m-%d %H:%M') }} {% if email.marker %}— {{ email.marker.username }}{% endif %}
{% endif %} {% else %}
{% endif %} {% if email.is_manually_marked and email.manually_marked_as == 'ham' %} {% if email.marked_at %}
{{ email.marked_at.strftime('%Y-%m-%d %H:%M') }} {% if email.marker %}— {{ email.marker.username }}{% endif %}
{% endif %} {% else %}
{% endif %} {% if email.status != 'deleted' %}
{% endif %}
Quick List Actions

Blacklist

{% if bl_email %}
Blocked - email {{ bl_email.value }}
{% endif %} {% if bl_domain %}
Blocked - domain {{ bl_domain.value }}
{% endif %} {% if not bl_email %}
{% endif %} {% if not bl_domain and email.sender_domain %}
{% endif %}

Whitelist

{% if wl_email %}
Allowed - email {{ wl_email.value }}
{% endif %} {% if wl_domain %}
Allowed - domain {{ wl_domain.value }}
{% endif %} {% if not wl_email %}
{% endif %} {% if not wl_domain and email.sender_domain %}
{% endif %}
Admin Notes
{% endblock %} {% block extra_scripts %} {% endblock %}