{% extends "base.html" %} {% from "components/ui.html" import action, credentials, csrf_field, danger_card with context %} {% from "components/connection.html" import connection_fields %} {% block title %}{{ account.email }} ยท {{ APP_NAME }}{% endblock %} {% block heading %}{{ account.email }}{% endblock %} {% block subheading %}
{{ account.display_name | or_missing }}
{% endblock %} {% block actions %} {% if can_read %}Mail{% endif %} {% if can_audit %}Sends{% endif %} {% if can_verify %}{{ action("/ui/accounts/" ~ account.id ~ "/verify", "Verify", cls="") }}{% endif %} {% endblock %} {% block content %} {% if signs_in_with_oauth and can_update %}

Sign-in

{% if account.status.value == "needs_reauth" %}
{{ account.provider.value | capitalize }} no longer accepts this service's token: sign in again.
{% else %}Signed in with {{ account.provider.value | capitalize }}. Sign in again after a password change or when access was revoked.{% endif %}
{{ csrf_field() }}
{% endif %}

Account

Id
{{ account.id }}
Provider
{{ account.provider.value }}
IMAP
{{ account.settings.get("host") | or_missing }}{% if account.settings.get("port") %}:{{ account.settings.port }}{% endif %}
SMTP
{{ account.settings.get("smtp_host") | or_missing }}{% if account.settings.get("smtp_port") %}:{{ account.settings.smtp_port }}{% endif %}
Status
{% include "partials/account_status.html" %}
Credentials
{{ credentials(account.credentials) }}
{% if can_update and not signs_in_with_oauth %}

Change

A new password or new servers are tried first. Nothing is stored unless the provider accepts them.
{{ csrf_field() }}
Empty: unchanged.
{{ connection_fields(account.settings, security, editing=True) }}
{% endif %} {% if can_delete %} {{ danger_card("Remove", "Removes the account and its stored credentials from this service. The mailbox at the provider stays as it is.", "/ui/accounts/" ~ account.id ~ "/delete", "Remove account", "Remove " ~ account.email ~ " from the service?") }} {% endif %} {% endblock %}