diff options
author | Pol Van Aubel <dev@polvanaubel.com> | 2015-06-02 12:38:04 +0200 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2016-12-06 14:46:38 +0000 |
commit | e9062faa5a66ae7b21c7df7cbb0528803ae0b95d (patch) | |
tree | 753432432cd4b6d0df1a70387606cb74bdb12e14 /alot/commands/thread.py | |
parent | ff42963e2028c99610f905b6ddd589e98019ffad (diff) |
Make header list configurable.
Diffstat (limited to 'alot/commands/thread.py')
-rw-r--r-- | alot/commands/thread.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/commands/thread.py b/alot/commands/thread.py index 3dff6855..b6e91c47 100644 --- a/alot/commands/thread.py +++ b/alot/commands/thread.py @@ -64,8 +64,8 @@ def determine_sender(mail, action='reply'): # Process the headers in order of importance: if a mail was sent with # account X, with account Y in e.g. CC or delivered-to, make sure that # account X is the one selected and not account Y. - for candidate_header in ['From', 'To', 'Cc', 'Envelope-To', - 'X-Envelope-To', 'Delivered-To']: + candidate_headers = settings.get("determine_reply_account_from_headers") + for candidate_header in candidate_headers: if realname is not None: break candidate_addresses = getaddresses(mail.get_all(candidate_header, [])) |