summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw1999-12-11 15:23:47 +0000
committerbwarsaw1999-12-11 15:23:47 +0000
commitd592f527984ee286d94c2e921ca8b224cb52880d (patch)
tree977f4cb6806760c3d16091be969f65ff130f0e96
parentf471202457a0fcbfa0f109d22677b64c3882bbcd (diff)
downloadmailman-d592f527984ee286d94c2e921ca8b224cb52880d.tar.gz
mailman-d592f527984ee286d94c2e921ca8b224cb52880d.tar.zst
mailman-d592f527984ee286d94c2e921ca8b224cb52880d.zip
hold_for_approval(): When admin_immed_notify is false, the subject
variable wouldn't get defined for responses to the sender. (Ricardo Kustner).
-rw-r--r--Mailman/Handlers/Hold.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Mailman/Handlers/Hold.py b/Mailman/Handlers/Hold.py
index 41c4c1925..9686fb397 100644
--- a/Mailman/Handlers/Hold.py
+++ b/Mailman/Handlers/Hold.py
@@ -197,6 +197,7 @@ def hold_for_approval(mlist, msg, excclass):
# We may want to send a notification to the original sender too
fromusenet = getattr(msg, 'fromusenet', 0)
if not fromusenet and not mlist.dont_respond_to_post_requests:
+ subject = 'Your message to %s awaits moderator approval' % listname
text = Utils.maketext('postheld.txt', d)
msg = Message.UserNotification(sender, adminaddr, subject, text)
HandlerAPI.DeliverToUser(mlist, msg)