From b008112245064f5dbdbe4104c9a3e89694c75cfc Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Tue, 16 Feb 2010 19:20:01 -0500 Subject: So long X-BeenThere, and thanks for all the fish. --- src/mailman/rules/loop.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/mailman/rules/loop.py') 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 -- cgit v1.2.3-70-g09d2