diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-11-20 15:24:03 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-11-20 15:24:03 +0100 |
commit | a70c1991cae77c80a4643b5bebdc1a849afa163e (patch) | |
tree | 2329617a55727c57a243b28e8da1f1a01a37ca0a | |
parent | 50f3c8ebac50ea9804f79ab0890801b00bed000f (diff) |
commands/thread: replace one more header with named constant
-rw-r--r-- | alot/commands/thread.py | 2 | ||||
-rw-r--r-- | alot/mail/headers.py | 1 |
2 files changed, 2 insertions, 1 deletions
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' |