{% extends "base.html" %} {% block title %}Emails{% endblock %} {% block content %} {% if not email_config_valid %}
Konfiguration erforderlich
Setze IMAP_SERVER, SMTP_SERVER, EMAIL_ADDRESS, EMAIL_PASSWORD in der .env-Datei.
{% else %}
Verbunden · {{ current_email }}
{% endif %}
Neue Email
Posteingang
{{ emails|length }} Emails
{% if email_config_valid and emails %} {% if emails[0].error is defined and emails[0].error %}
{{ emails[0].error }}
{% else %}
    {% for mail in emails %}
  • {{ mail.subject }} {{ mail.date[:10] }}
    {{ mail.from }}
    {{ mail.preview }}
  • {% endfor %}
{% endif %} {% elif not email_config_valid %}

Email-Konfiguration erforderlich

{% else %}

Keine Emails vorhanden

{% endif %}
Gesendete Emails
{{ sent_emails|length }} Einträge
{% if sent_emails %}
{% for mail in sent_emails %} {% endfor %}
# Zeitpunkt An Betreff Von Agent Task Status
{{ mail.id }} {{ mail.sent_at[:16].replace('T',' ') }} {{ mail.to_address }} {{ mail.subject }} {{ mail.triggered_by }} {% if mail.task_id %}#{{ mail.task_id }}{% endif %} {% if mail.status == 'sent' %} gesendet {% elif mail.status == 'error' %} Fehler {% else %} {{ mail.status }} {% endif %}
{% else %}
Noch keine Emails gesendet.
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}