{% extends "layout.html" %} {% import "macros.jnj" as common %} {% macro display_in_reply_to(key, name) %} {% if email[key] != 'None' -%}
{{ common.display_label(name)|safe }} {{ common.display_link(email[key], '/email', email[key])|safe }}
{% endif -%} {% endmacro -%} {% macro convert_body(body) -%} {{ body.replace('\r\n', '
')|safe }} {% endmacro -%} {% macro display_email_body(record) -%} {% if(record['body']) -%}
{{ convert_body(record['body']) }}
{% endif -%} {% endmacro -%} {% block content -%}

Email ID: {{email['message_id']}}

{{ common.display_email_addresses('From', email['from'])|safe }} {{ common.display_email_addresses('To', email['tos'])|safe }} {{ common.display_email_addresses('Cc', email['ccs'])|safe }} {{ common.display_email_addresses('Bcc', email['bccs'])|safe }} {{ common.display_email_addresses('Reply-To', email['reply_tos'])|safe }} {{ display_in_reply_to('in_reply_to', 'In-Reply-To') }} {{ common.display_field(email['date'], 'Date')|safe }} {{ common.display_field(email['subject'], 'Subject')|safe }} {{ display_email_body(email) }}
{% if topics -%}

Topics

{% endif -%} {% if addresses -%}

Email Addresses

{% endif -%} {% if sent_distribution -%}

Emails Sent by Hour

{{ email['from']['address'] }}
sssafafafa
{% endif -%}
{% if sent_distribution -%}
{% for item in sent_distribution['sent_distribution'] %} {% endfor %}
Hour Total Sent
{{ item['sent_hour'] }} {{ item['total'] }}
{% endif -%} {% endblock -%}