{{ names.get(m.from_addr, m.from_addr) }} → {{ names.get(m.to_addrs[0], m.to_addrs[0]) }}{% if m.cc_addrs %} cc {{ m.cc_addrs|join(', ') }}{% endif %}
{% if m.is_human %}Written by a person{% endif %}{{ h.datetime.fromisoformat(m.sent_at).astimezone(tz).strftime('%a %d %b %Y, %H:%M') }}
{% if m.is_human and m.attachments %}
{{ icon("clip", 14) }} {% for a in m.attachments %}{% set link = file_link(a.path) %}{% if link %}{{ a.filename }}{% else %}{{ a.filename }}{% endif %}{{ ', ' if not loop.last }}{% endfor %}
{% endif %}
{% endfor %}
{% else %}
No emails yet. Use Send now on an automation to send the first one.