diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-05-13 10:12:48 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-05-13 10:12:48 +0200 |
commit | 9ffd58ba4e3f167ce521c3269649b5705e7c280c (patch) | |
tree | c585434e655275a0a4db175f84bea18a10067db9 | |
parent | a741ac644bf77eb7deb61ba0e1eecb30a1c77268 (diff) |
commands/thread:ReplyCommand: use the headers object for accessing List-Id
-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 7ac7dd93..39a78618 100644 --- a/alot/commands/thread.py +++ b/alot/commands/thread.py @@ -193,10 +193,10 @@ class ReplyCommand(Command): # Auto-detect ML auto_replyto_mailinglist = settings.get('auto_replyto_mailinglist') - if mail['List-Id'] and self.listreply is None: + if 'List-Id' in message.headers and self.listreply is None: # mail['List-Id'] is need to enable reply-to-list self.listreply = auto_replyto_mailinglist - elif mail['List-Id'] and self.listreply is True: + elif 'List-Id' in message.headers and self.listreply is True: self.listreply = True elif self.listreply is False: # In this case we only need the sender |