From a70c1991cae77c80a4643b5bebdc1a849afa163e Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 20 Nov 2021 15:24:03 +0100 Subject: commands/thread: replace one more header with named constant --- alot/commands/thread.py | 2 +- alot/mail/headers.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/alot/commands/thread.py b/alot/commands/thread.py index 3e0bba01..4705a4c7 100644 --- a/alot/commands/thread.py +++ b/alot/commands/thread.py @@ -168,7 +168,7 @@ class ReplyCommand(Command): def _list_reply(self, message): # Auto-detect ML - if 'List-Id' in message.headers and self._force_list_reply is None: + if HDR.LIST_ID in message.headers and self._force_list_reply is None: return settings.get('auto_replyto_mailinglist') return bool(self._force_list_reply) diff --git a/alot/mail/headers.py b/alot/mail/headers.py index 3138c281..fa7f6414 100644 --- a/alot/mail/headers.py +++ b/alot/mail/headers.py @@ -14,5 +14,6 @@ SUBJECT = 'Subject' IN_REPLY_TO = 'In-Reply-To' REFERENCES = 'References' +LIST_ID = 'List-ID' X_BEEN_THERE = 'X-Been-There' X_MAILING_LIST = 'X-Mailing-List' -- cgit v1.2.3