{% extends "base.html" %} {% from "components/ui.html" import action, ago, breadcrumb, empty, filter_bar, link_button, pager with context %} {% block title %}Outbox · {{ account.email }} · {{ APP_NAME }}{% endblock %} {% block heading %}Outbox{% endblock %} {% block subheading %}{{ breadcrumb(trail) }}{% endblock %} {% block actions %} {% if can_drafts %}{{ link_button("/ui/accounts/" ~ account.id ~ "/drafts", "Drafts", "pencil") }}{% endif %} {% endblock %} {% block content %} {% if not keeps_drafts %}
This account keeps no drafts, so it has no outbox: each send goes out at once.
{% endif %}
{{ filter_bar(bar) }}

A send in the outbox waits as a draft in the drafts folder and goes out in the background, tried again for 48 hours while the mail server is away. Times are UTC.

{% if jobs %}
{% for job in jobs %} {% endfor %}
QueuedToDueStateTries
{{ ago(job.created_at) }} {{ job.recipients | join(", ") }} {% if job.state in ("queued", "copying") %}{{ job.due_at | when }}{% else %}—{% endif %} {% if job.state == "sent" %}sent {% elif job.state in ("queued", "sending", "copying") %}{{ job.state }} {% elif job.state == "cancelled" %}cancelled {% elif job.state == "unknown" %}unknownWhether it went out cannot be told. It is not sent again, and its draft stays: look whether it arrived. {% else %}failed{% endif %} {% if job.last_error and job.state != "sent" %}{{ job.last_error }}{% endif %} {{ job.attempts }} {% if job.state == "queued" and (can_cancel_any or (can_cancel_own and job.user_id == me_id)) %} {{ action("/ui/accounts/" ~ account.id ~ "/outbox/" ~ job.id ~ "/cancel", "Cancel send", confirm="Cancel this send? Its draft stays in the drafts folder.", icon="x-lg", alone=True) }} {% endif %}
{% else %} {{ empty("Nothing in the outbox" ~ (" in this state" if state else "") ~ ".") }} {% endif %}
{{ pager(pages) }}
{% endblock %}