summaryrefslogtreecommitdiff
path: root/alot/defaults
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-11-20 14:59:34 +0100
committerAnton Khirnov <anton@khirnov.net>2021-11-20 14:59:34 +0100
commit2b6c9088c78d1aa944eeb969f678d644b8ef1180 (patch)
tree294a983822471a2d65581fdf945b457fc724cb3f /alot/defaults
parentd64e41150f6ba53a9361e8560d374bc69974ca84 (diff)
commands/envelope: refactor deriving headers to be edited
Split the code into its own function. Make it properly case-insensitive. Apply either the blacklist or the whitelist setting, trying to apply both makes no sense. Enforce that either a blacklist or a whitelist is configured in the settings.
Diffstat (limited to 'alot/defaults')
-rw-r--r--alot/defaults/alot.rc.spec7
1 files changed, 4 insertions, 3 deletions
diff --git a/alot/defaults/alot.rc.spec b/alot/defaults/alot.rc.spec
index 6531f76a..ca890eb6 100644
--- a/alot/defaults/alot.rc.spec
+++ b/alot/defaults/alot.rc.spec
@@ -114,9 +114,10 @@ editor_spawn = boolean(default=False)
# will make alot non-blocking during edits
editor_in_thread = boolean(default=False)
-# Which header fields should be editable in your editor
-# used are those that match the whitelist and don't match the blacklist.
-# in both cases '*' may be used to indicate all fields.
+# Which header fields should be editable in your editor.
+# Exactly one of edit_headers_whitelist and edit_headers_blacklist must be '*',
+# then the other one is used to either whitelist or blacklist headers for
+# editing.
edit_headers_whitelist = force_list(default=list(*,))
# see :ref:`edit_headers_whitelist <edit-headers-whitelist>`