{% extends 'admin/master.html' %} {% block body %}
{{ _('Download Original Message') }}

{{ _("Resume") }}

{% if model.errors_count > 0 %} {% endif %}
{{ _("Key") }} {{ model.store_key }}
Message-Id {{ model.message_id|safe }}
{{ _("Sent date") }} {{ model.sent|datetimeformat(format='full') }}
{{ _("Received Date") }} {{ model.received|datetimeformat(format='full') }}
{{ _("Subject") }} {{ model.subject|safe }}
{{ _("Sender") }} {{ model.sender }}
{{ _("Recipients") }} {% if model.rcpt_count == 1 %} {{ model.rcpt.0 }} {% else %}
    {% for rcpt in model.rcpt %}
  • {{ rcpt }}
  • {% endfor %}
{% endif %}
{{ _("Size") }} {{ model.size|filesizeformat }}
{{ _("From IP Address") }} {{ model.client_address }}
{{ _("Country") }} {{ country_name(model.country) }}
{{ _("Files") }} ({{model.files_count}}) {% if model.files_count == 0 %}   {% else %} {% for f in model.files %} {% endfor %}
{{ _("Name") }} {{ _("Size") }} {{ _("Type") }}
{{ f.filename }} {{ f.size|filesizeformat }} {{ f.content_type }}
{% endif %}
{{ _("Parsing Errors") }} {% for error in model.parsing_errors %}

{{error}}

{% endfor %}

{{ _("Headers") }}

{% for name, value in email.headers.items() %} {% endfor %}
{{ name }} {{ value }}

{{ _("Message") }}

{% if email.content_type.is_singlepart() %}
{{ email.body|safe }}
{% else %} {% for part in email.parts %} {% if part.is_body() %} {# and part.content_type.value in ['text/plain', 'text/html'] #}
Partie : {{ loop.index }} - {{ part.content_type.value }} : ({{part.size|filesizeformat}})
{{ part.body }}
{% elif part.detected_file_name %}
Partie : {{ loop.index }} - {{ part.detected_file_name }} : ({{part.size|filesizeformat}})
{% else %}
Partie : {{ loop.index }} - {{ part.content_type.value }}
{% endif %} {% endfor %} {% endif %}
{% endblock body %} {% block tail %} {{ super() }} {% endblock tail %}