diff options
| author | Barry Warsaw | 2010-02-16 19:20:01 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2010-02-16 19:20:01 -0500 |
| commit | b008112245064f5dbdbe4104c9a3e89694c75cfc (patch) | |
| tree | 1b3fa89615f974372baa8fa79f2578ba651aac71 /src/mailman/rules/loop.py | |
| parent | 006515005077b7b4b6fbb18d593800264ed307c4 (diff) | |
| download | mailman-b008112245064f5dbdbe4104c9a3e89694c75cfc.tar.gz mailman-b008112245064f5dbdbe4104c9a3e89694c75cfc.tar.zst mailman-b008112245064f5dbdbe4104c9a3e89694c75cfc.zip | |
Diffstat (limited to 'src/mailman/rules/loop.py')
| -rw-r--r-- | src/mailman/rules/loop.py | 8 |
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 |
