From 5415a816e1ebcb0262ff6a0b1a866339ecd816aa Mon Sep 17 00:00:00 2001 From: Lucas Hoffmann Date: Fri, 11 Mar 2016 12:42:10 +0100 Subject: Make encrypt_by_default a three choice option. The new specs for the config file are defined to allow existing config files to work with it. --- alot/defaults/alot.rc.spec | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'alot') diff --git a/alot/defaults/alot.rc.spec b/alot/defaults/alot.rc.spec index 4abe2268..6f98dca0 100644 --- a/alot/defaults/alot.rc.spec +++ b/alot/defaults/alot.rc.spec @@ -228,7 +228,7 @@ prefer_plaintext = boolean(default=False) # messages in that thread. msg_summary_hides_threadwide_tags = boolean(default=True) -# Key bindings +# Key bindings [bindings] __many__ = string(default=None) [[___many___]] @@ -298,8 +298,21 @@ msg_summary_hides_threadwide_tags = boolean(default=True) # Outgoing messages will be GPG signed by default if this is set to True. sign_by_default = boolean(default=False) - # Outgoing messages will be GPG encrypted by default if this is set to True. - encrypt_by_default = boolean(default=False) + # Alot will try to GPG encrypt outgoing messages by default when this + # is set to `True` or `Valid`. If set to `True` the message will be + # encrypted for all recipients if a key for all of them is available + # in the key ring. If set to `Valid` it will be encrypted to all + # recipients if a valid key is available for all recipients. + # Otherwise (at least one key not available or not valid) the message + # will not be encrypted by default. + # + # .. note:: If the message will not be encrypted by default you can + # still use the :ref:`toggleencrypt + # `, :ref:`encrypt + # ` and :ref:`unencrypt + # ` commands to encrypt it. + + encrypt_by_default = option('Valid', True, False, default=False) # The GPG key ID you want to use with this account. If unset, alot will # use your default key. -- cgit v1.2.3