diff options
| author | mailman | 1998-03-18 22:38:14 +0000 |
|---|---|---|
| committer | mailman | 1998-03-18 22:38:14 +0000 |
| commit | 90bf44d624d612403e2ca4a6be3c1da8c1d415bd (patch) | |
| tree | 361c8c3bfe27fbc188614ded39b5904339adc3c8 /modules/mm_admin.py | |
| parent | 993012b3f7929bdb54a05632ffd05d128330a158 (diff) | |
| download | mailman-90bf44d624d612403e2ca4a6be3c1da8c1d415bd.tar.gz mailman-90bf44d624d612403e2ca4a6be3c1da8c1d415bd.tar.zst mailman-90bf44d624d612403e2ca4a6be3c1da8c1d415bd.zip | |
Take additional info about the message subject in the 'post'
.AddRequest(), for admin notices.
Stop inhibiting sending of request refusal for moderated messages! (I
think this was confused with sending of request queuing, which should
be suppressed, and now is in the ../scripts/post script.)
Refined various notice's text a bit, including adding more info.
Diffstat (limited to 'modules/mm_admin.py')
| -rw-r--r-- | modules/mm_admin.py | 39 |
1 files changed, 22 insertions, 17 deletions
diff --git a/modules/mm_admin.py b/modules/mm_admin.py index caf56fdd6..857d0ea33 100644 --- a/modules/mm_admin.py +++ b/modules/mm_admin.py @@ -5,24 +5,30 @@ import mm_err, mm_cfg, mm_message import os, marshal, time, string SUBSCRIPTION_AUTH_TEXT = """ -Your authorization is required to approve or deny a subscription for -%s to the %s@%s mailing list. Please visit: +Your authorization is required for a maillist subscription request approval: + +For: %s +List: %s@%s + +At your convenience, visit: %s -at your convenience to process the request.""" +to process the request.""" POSTING_AUTH_TEXT = """ -Your authorization is required to approve or deny a posting for -%s to the %s@%s mailing list. +Your authorization is required for a maillist posting request approval: -Reason for hold: %s +List: %s@%s +Reason held: %s +From: %s +Subject: %s -Please visit: +At your convenience, visit: %s -at your convenience to process the request.""" +to approve or deny the request.""" class ListAdmin: def InitVars(self): @@ -58,18 +64,20 @@ class ListAdmin: elif request == 'post': sender = args[0][0] reason = args[1] + subject = args[2] self.LogMsg("vette", "%s: %s %s" % (self.real_name, reason, sender)) if self.admin_immed_notify: - subj = '%s posting approval, sender %s' % (self.real_name, + subj = '%s posting approval for: %s' % (self.real_name, sender) self.SendTextToUser(subject = subj, recipient = self.GetAdminEmail(), text = (POSTING_AUTH_TEXT - % (sender, - self.real_name, + % (self.real_name, self.host_name, reason, + sender, + subject, self.GetScriptURL('admindb')))) raise mm_err.MMNeedApproval, args[1] @@ -118,12 +126,9 @@ class ListAdmin: msg.getheader('subject') if not comment: comment = data[1] - # If there's an extra arg on data, we don't send an error message. - # This is because if people are posting to a moderated list, they - # Are expecting to wait on approval. - if len(data) < 3: - if not self.dont_respond_to_post_requests: - self.RefuseRequest(request, destination_email, comment, msg) + if not self.dont_respond_to_post_requests: + self.RefuseRequest(request, destination_email, + comment, msg) else: self.Post(msg, 1) |
