{% extends 'base.html' %} {% from '_compose.html' import compose %} {% block title %}{{ e.subject }}{% endblock %} {% block content %} {% set incoming = e.direction == 'in' %}
← {{ 'Verzonden' if not incoming else ('Archief' if e.archived else 'Inbox') }}

{{ e.subject }}

{% if incoming %}Van {{ e.from_name }} <{{ e.from_addr }}>{% else %}Aan {{ e.to_addr }}{% endif %} {% if e.cc %}· CC {{ e.cc }}{% endif %} · {{ e.date|dt }}{% if e.mailbox_name %} · {{ e.mailbox_name }}{% endif %}
{% if e.attachments %}
Bijlagen: {{ e.attachments }}
{% endif %}
{% if contact %} Naar {{ contact.name }} {% elif incoming %}
{% endif %} Doorsturen {% if incoming %}
{% endif %}
{{ e.body }}
{% if incoming %}

Beantwoorden

{{ compose({'to': e.from_addr, 'subject': e.subject if e.subject.lower().startswith('re:') else 'Re: ' ~ e.subject, 'reply_to': e.id, 'contact_id': contact.id if contact else None, 'mailbox_id': e.mailbox_id}, templates, vars, mailboxes) }}
{% endif %} {% endblock %}