{% if type == 'msg' %} {% if sender %}{% endif %} {% if to %}{% endif %} {% if cc %}{% endif %} {% if date %}{% endif %}
From{{ sender }}
To{{ to }}
CC{{ cc }}
Date{{ date }}
Subject{{ subject }}
{% if attachments %}
Attachments: {% for att in attachments %} {{ att.0 }} {% endfor %}
{% endif %}
{% if html_body %} {% else %}
{{ body }}
{% endif %}
{% elif type == 'pdf' %} {% elif type == 'image' %}
{{ name }}
{% else %}

{{ name }}

This file type cannot be previewed. Use the Download button to save it.

{% endif %}