summaryrefslogtreecommitdiff
path: root/Mailman/app/replybot.py
diff options
context:
space:
mode:
authorBarry Warsaw2008-01-21 00:26:55 -0500
committerBarry Warsaw2008-01-21 00:26:55 -0500
commit4460aad316db5c8af9b84c392e67441acaac9d72 (patch)
treeeabc714fdc3c9aff16ca48cfbc5f7974af01e1c1 /Mailman/app/replybot.py
parent2efcac1ef273b407668826c587c15a0fd8ec3d3c (diff)
downloadmailman-4460aad316db5c8af9b84c392e67441acaac9d72.tar.gz
mailman-4460aad316db5c8af9b84c392e67441acaac9d72.tar.zst
mailman-4460aad316db5c8af9b84c392e67441acaac9d72.zip
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