diff options
| author | bwarsaw | 2000-12-20 21:33:28 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-12-20 21:33:28 +0000 |
| commit | e0ac956775f77115d22b985b3f8a80db3417757e (patch) | |
| tree | 97dbdc18218e7c466e06f43a04060f7233a61cc0 | |
| parent | e29d79c22ad519897104f37a76c5642077dacb29 (diff) | |
| download | mailman-e0ac956775f77115d22b985b3f8a80db3417757e.tar.gz mailman-e0ac956775f77115d22b985b3f8a80db3417757e.tar.zst mailman-e0ac956775f77115d22b985b3f8a80db3417757e.zip | |
| -rw-r--r-- | Mailman/Handlers/Approve.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Mailman/Handlers/Approve.py b/Mailman/Handlers/Approve.py index ee96bce0b..95763df88 100644 --- a/Mailman/Handlers/Approve.py +++ b/Mailman/Handlers/Approve.py @@ -23,7 +23,6 @@ not tested by this module. """ -import string import HandlerAPI from Mailman import mm_cfg from Mailman import Errors @@ -49,11 +48,7 @@ def process(mlist, msg, msgdata): # determination. msgdata['approved'] = 1 # has this message already been posted to this list? - beentheres = map(filterfunc, msg.getallmatchingheaders('x-beenthere')) + beentheres = [s.split(':', 1)[1].strip() for s in + msg.getallmatchingheaders('x-beenthere')] if mlist.GetListEmail() in beentheres: raise LoopError - - - -def filterfunc(s): - return string.strip(string.split(s, ': ')[1]) |
