summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Mailman/Handlers/Hold.py2
-rw-r--r--Mailman/Handlers/Moderate.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/Mailman/Handlers/Hold.py b/Mailman/Handlers/Hold.py
index c06431751..d4ab19f91 100644
--- a/Mailman/Handlers/Hold.py
+++ b/Mailman/Handlers/Hold.py
@@ -180,7 +180,7 @@ def hold_for_approval(mlist, msg, msgdata, exc):
# Go ahead and instantiate it now.
exc = exc()
listname = mlist.real_name
- sender = msg.get_sender()
+ sender = msgdata.get('sender', msg.get_sender())
owneraddr = mlist.GetOwnerEmail()
adminaddr = mlist.GetBouncesEmail()
requestaddr = mlist.GetRequestEmail()
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: