summaryrefslogtreecommitdiff
path: root/Mailman/app/replybot.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/app/replybot.py')
-rw-r--r--Mailman/app/replybot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mailman/app/replybot.py b/Mailman/app/replybot.py
index d1bc9c487..62d442e82 100644
--- a/Mailman/app/replybot.py
+++ b/Mailman/app/replybot.py
@@ -109,14 +109,14 @@ def can_acknowledge(msg):
(which is different from whether it will be acknowledged).
"""
# I wrote it this way for clarity and consistency with the docstring.
- for header in msg:
+ for header in msg.keys():
if header in ('x-no-ack', 'precedence'):
return False
if header.lower().startswith('list-'):
return False
if msg.get('x-ack', '').lower() == 'no':
return False
- if msg.get('auto-submitted', 'no').lower() <> 'no'
+ if msg.get('auto-submitted', 'no').lower() <> 'no':
return False
if msg.get('return-path') == '<>':
return False