summaryrefslogtreecommitdiff
path: root/Mailman/Handlers/Approve.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/Handlers/Approve.py')
-rw-r--r--Mailman/Handlers/Approve.py9
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])