summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--alot/commands/thread.py4
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