{# This is a self-contained modal for adding (and editing) account details. This is a single form which handles profiles, routes and basic source configuration. The basic section of the form captures name, e-mail and password. If the user allows auto-detection of settings, the Thunderbird ISPDB will be queried and possibly other heuristics employed to figure out correct connection settings. If successful, the route and source forms will be filled in automatically (and skipped on Next). Manual settings for routes and sources are as expected; local or remote options, SMTP, IMAP, POP3, SSL, ports, hostnames, auth, ... The security section of the form allows the user to choose which PGP key to associate with this account or create a new one if he has none, which will take place in a long-running background process. The user can at any time skip forward or backwards in the form by clicking on the section headlines, which are kept visible for that purpose. #}{% set new_src_id = result.new_src_id %}
{%- if result.rid %} {%- endif %}

{{_("Basic Details")}}

{%- if config.version >= '0.6.0' %} {%- if not result.rid %} {% endif %} {%- endif %}

FIXME ... add signup with partners here!

{%- if not result.rid %} {{_("Add custom signature")}} ...    {% endif %} {%- if not result.sources %} {{ _("Detect settings") }}   {% endif %}

{{_("Auto-detecting settings")}} ...

{% include("../img/loading-ellipsis.svg") %}

{{_("Failed to detect settings, manual configuration required")}}!

{{_("Sending Mail")}}


({{ _("copied") }})
({{ _("copied") }})

{{_("Send mail using local Unix tools.")}} {{_("Use this setting if you have a working mail server on this machine.")}}



{{_("No outgoing mail for this account.")}}




{{_("Receiving Mail")}}

{% macro source_editor(rid, new_rid) %} {% set protocol = result['source-' + rid + '-protocol'] %}

({{ _("copied") }})
({{ _("copied") }})
{%- if config.version >= '0.6.0' %} {{_("Leave mail on server")}}
{%- else %} {%- endif %} {{_("Download all mail and add to search engine")}}
{{_("Require STARTTLS encryption")}}

{{_("Create visible Mailpile tags for all folders")}}

{{_("Receive mail from local Unix mail spool.")}} {{_("Use this setting if you have a working mail server on this machine.")}}

{{_("Copy mail to Mailpile secure storage")}}
{%- if config.version >= '0.6.0' %} {{_("Delete from Unix mail spool")}} {%- endif %}


{%- if result.sources %} {{_("Choose a protocol for the new mail source...")}} {%- else %} {{_("No incoming mail for this account.")}} {%- endif %}


{{_("Use this setting if you would like Mailpile to read e-mails already downloaded by Thunderbird, Mac Mail or another local application on this machine.")}}

{{_("Use the Browse tool to import local mailboxes later on.")}}

{%- if rid == new_rid %}

{{_("Enable this mail source")}}
{% else %} {% endif %} {%- endmacro %} {%- for sid in result.sources %} {%- if not loop.first %}

{% endif %} {{- source_editor(sid, sid) }} {%- endfor %}
{%- if result.sources %}

{% endif %} {{- source_editor('NEW', new_src_id) }}

{% if result.sources %} {{ _("Add New") }}   {% endif %}

{{_("Important")}}!

{{_("Mailpile may not be able to access your mail unless you log on to your account and enable IMAP and/or POP3.")}} {{_("Without this, some providers will even mistake Mailpile for an intruder!")}}

{{_("Enable IMAP")}}

{{_("Security and Privacy")}}

{{_("Best-effort digital signatures and encryption")}} {%- if config.version >= '0.6.0' %} (details) {%- endif %}
{{_("Always digitally sign outgoing mail")}}
{{_("Always encrypt if possible (may make mail unreadable)")}}
{{_("Automatically attach encryption keys to outgoing mail")}}
{{_("Prefer compatibility (avoid PGP/MIME, makes mail ugly)")}}
{{_("Signal a preference for encrypted mail")}} {%- if config.version >= '0.6.0' %} (details) {%- endif %}
{{_("Signal a preference for signed mail")}}
{{_("Signal a preference for un-signed, un-encrypted mail")}}
{# FIXME: This does not work yet...
{{_("Upload key to public directory (key server)")}} #}