From 72a8abdd2e20774d3bf106f87791834a572cdf5e Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Tue, 7 May 2002 05:15:25 +0000 Subject: hold_for_approval(): Get the sender address from the msgdata dictionary's `sender' key, or the msg.get_sender() if not available. This lets exceptions pass the sender through the metadata dictionary. Used by Moderate.py to specify the failing address as retrieved from get_senders() -- note the plural -- which has a different lookup scheme than get_sender(). Moderate.process(): Set the tested sender address in the msgdata's dictionary. --- Mailman/Handlers/Moderate.py | 1 + 1 file changed, 1 insertion(+) (limited to 'Mailman/Handlers/Moderate.py') diff --git a/Mailman/Handlers/Moderate.py b/Mailman/Handlers/Moderate.py index a41aafc19..fe6cbbbc1 100644 --- a/Mailman/Handlers/Moderate.py +++ b/Mailman/Handlers/Moderate.py @@ -54,6 +54,7 @@ def process(mlist, msg, msgdata): if mlist.member_moderation_action == 0: # Hold. BAW: WIBNI we could add the member_moderation_notice # to the notice sent back to the sender? + msgdata['sender'] = sender Hold.hold_for_approval(mlist, msg, msgdata, ModeratedMemberPost) elif mlist.member_moderation_action == 1: -- cgit v1.2.3-70-g09d2