summaryrefslogtreecommitdiff
path: root/src/mailman/rules/loop.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/rules/loop.py')
-rw-r--r--src/mailman/rules/loop.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mailman/rules/loop.py b/src/mailman/rules/loop.py
index 6f1a5ff6f..49fdd6ea8 100644
--- a/src/mailman/rules/loop.py
+++ b/src/mailman/rules/loop.py
@@ -37,12 +37,12 @@ class Loop:
implements(IRule)
name = 'loop'
- description = _('Look for a posting loop, via the X-BeenThere header.')
+ description = _('Look for a posting loop.')
record = True
def check(self, mlist, msg, msgdata):
"""See `IRule`."""
# Has this message already been posted to this list?
- been_theres = [value.strip().lower()
- for value in msg.get_all('x-beenthere', [])]
- return mlist.posting_address in been_theres
+ list_posts = set(value.strip().lower()
+ for value in msg.get_all('list-post', []))
+ return mlist.posting_address in list_posts