Skip to content

Commit

Permalink
Merge pull request #206 from autocrypt/issue-162
Browse files Browse the repository at this point in the history
add accounts[addr].enabled
  • Loading branch information
Valodim committed Nov 6, 2017
2 parents 53656e6 + 401d197 commit ae4f598
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions doc/level1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,11 @@ Accounts controlled by the MUA

A Level 1 MUA maintains an internal structure ``accounts`` indexed by
the account's :doc:`canonicalized e-mail address
<address-canonicalization>` (``addr``). For each account on which
Autocrypt is enabled, ``accounts[addr]`` has the following attributes:
<address-canonicalization>` (``addr``). For each account controlled
by the MUA, ``accounts[addr]`` has the following attributes:

* ``enabled``: a boolean value, indicating whether Autocrypt is
enabled for this account.
* ``secret_key``: The RSA secret key material used for
the account (see :ref:`secretkeys`).
* ``public_key``: The OpenPGP transferable public key (:rfc:`OpenPGP
Expand All @@ -136,7 +138,7 @@ Autocrypt is enabled, ``accounts[addr]`` has the following attributes:
preference for this account. This is either ``mutual`` or ``nopreference``.
This SHOULD default to ``nopreference``.

If Autocrypt is enabled for a given account, the MUA SHOULD allow the
If ``accounts[addr].enabled`` is ``true``, the MUA SHOULD allow the
user to switch the setting for ``accounts[addr].prefer_encrypt``.
This choice might be hidden in something like a "preferences pane".
See :ref:`preference-ui` for a specific example of how this could
Expand Down Expand Up @@ -230,10 +232,12 @@ Header injection in outbound mail
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

During message composition, if the ``From:`` header of the outgoing
e-mail (the ``from-addr``) matches an address for which the
Autocrypt-capable MUA has secret key material
(``accounts[from-addr].secret_key``), the MUA SHOULD include an Autocrypt
header. This header MUST contain the corresponding public key material
e-mail (the ``from-addr``) matches an address for which
``accounts[from-addr].enabled`` is ``true`` and the Autocrypt-capable
MUA has secret key material (``accounts[from-addr].secret_key``), the
MUA SHOULD include an Autocrypt header.

This header MUST contain the corresponding public key material
(``accounts[from-addr].public_key``) as the ``keydata`` attribute, and
``from-addr`` as the ``addr`` attribute. The most minimal Level 1
compliant MUA will only include these two attributes. If
Expand Down Expand Up @@ -861,8 +865,9 @@ Account Preferences
+++++++++++++++++++

Level 1 MUAs MUST allow the user to disable Autocrypt completely for
each account they control. For level 1, we expect most MUAs to have
Autocrypt disabled by default.
each account they control (that is, to set ``accounts[addr].enabled``
to ``false``). For level 1, we expect most MUAs to have Autocrypt
disabled by default.

.. _getting_started:

Expand Down

0 comments on commit ae4f598

Please sign in to comment.