From 9ffd58ba4e3f167ce521c3269649b5705e7c280c Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 13 May 2021 10:12:48 +0200 Subject: commands/thread:ReplyCommand: use the headers object for accessing List-Id --- alot/commands/thread.py | 4 ++-- 1 file 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 -- cgit v1.2.3