{# The AI summary of unread emails, in the email details under the numbers. #}
Summary · Claude {% if count %} {% endif %}
{% if error %}

{{ error }}

{% endif %} {% if summary %} {% if new %}

{{ new }} new since {{ summary.at | ago }}. Update to include {{ "it" if new == 1 else "them" }}.

{% endif %}

{{ summary.overview }}

{% for priority, heading in [("high", "Needs you"), ("medium", "Worth a look")] %} {% set items = summary["items"] | selectattr("priority", "equalto", priority) | list %} {% if items %}
{{ heading }}
{% endif %} {% endfor %} {% set later = summary["items"] | selectattr("priority", "equalto", "low") | list | length %} {% if later %}

{{ later }} can wait: newsletters, notifications and the like.

{% endif %} {% elif count and not error %}

What needs you and what can wait, from the senders, subjects and the start of each email.

{% endif %}