{% extends 'admin/master.html' %} {% block body %}
Clé {{ model.store_key }}
Message-Id {{ model.message_id|safe }}
Envoyé le {{ model.sent|datetimeformat(format='full') }} {# ({{ model.sent_origin }}) #}
Reçu le {{ model.received|datetimeformat(format='full') }}
Sujet {{ model.subject|safe }}
Expéditeur {{ model.sender }}
Destinataire(s) {% if model.rcpt_count == 1 %} {{ model.rcpt.0 }} {% else %}
    {% for rcpt in model.rcpt %}
  • {{ rcpt }}
  • {% endfor %}
{% endif %}
Taille {{ model.size|filesizeformat }}
De l'adresse IP {{ model.client_address }}
Pays d'origine {{ country_name(model.country) }}
Fichiers ({{model.files_count}}) {% if model.files_count == 0 %}   {% else %} {% for f in model.files %} {% endfor %}
Fichier Taille Type
{{ f.filename }} {{ f.size|filesizeformat }} {{ f.content_type }}
{% endif %}

Entêtes

{% 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 %}