(*) when someone requests a subscription,
Mailman sends them a notice with a unique
@@ -82,13 +84,15 @@
# choices
(_('Confirm'),
_('Require approval'),
- _('Confirm and approve')),
+ _('Confirm and approve'),
+ _('Forbid')),
1,
_('What steps are required for subscription?
'),
_("""Confirm (*) - email confirmation required
Require approval - require list administrator
approval for subscriptions
- Confirm and approve - both confirm and approve
+ Confirm and approve - both confirm and approve
+ Forbid - reject all new subscription request
(*) when someone requests a subscription, Mailman sends them a notice with a unique === modified file 'Mailman/HTMLFormatter.py' --- Mailman/HTMLFormatter.py 2017-07-31 00:37:30 +0000 +++ Mailman/HTMLFormatter.py 2018-05-31 07:04:12 +0000 @@ -202,6 +202,10 @@ by the list moderator. You will be notified of the moderator's decision by email.""") also = _("also ") + elif self.subscribe_policy == 4: + msg += _("""This is a closed list which don't accept any new + subscription request.""") + also = _("also ") if msg: msg += ' ' if self.private_roster == 1: === modified file 'Mailman/MailList.py' --- Mailman/MailList.py 2018-04-11 09:36:40 +0000 +++ Mailman/MailList.py 2018-06-01 18:57:13 +0000 @@ -898,6 +898,15 @@ # Trying to subscribe the list to itself! raise Errors.MMBadEmailError realname = self.real_name + # Does the list allow new subscription? + if self.subscribe_policy == 4: + if remote: + whence = ' from %s' % remote + else: + whence = '' + syslog('vette', '%s reject subscription: %s%s (by policy)', + realname, email, whence) + raise Errors.MembershipIsRejectedByPolicy # Is the subscribing address banned from this list? pattern = self.GetBannedPattern(email) if pattern: === modified file 'misc/sitelist.cfg' --- misc/sitelist.cfg 2009-01-11 16:06:13 +0000 +++ misc/sitelist.cfg 2018-05-31 06:38:46 +0000 @@ -178,6 +178,7 @@ # 1 = "Confirm" # 2 = "Require approval" # 3 = "Confirm and approve" +# 4 = "Forbid" subscribe_policy = 2 # When members want to leave a list, they will make an unsubscription === added file 'templates/en/listinfo_nosubscribe.html' --- templates/en/listinfo_nosubscribe.html 1970-01-01 00:00:00 +0000 +++ templates/en/listinfo_nosubscribe.html 2018-05-31 06:05:16 +0000 @@ -0,0 +1,76 @@ + + + +
++
+ |
+ |
+ + |
+ |
+ About |
+
+ |
+
+ To see the collection of prior postings to the list,
+ visit the |
+ |
+ Using |
+ |
+ To post a message to all the list members, send email to
+ You can change your existing + subscription, in the sections below. + |
+ |
+
+ |
+ |
+
+ |
+
+
+ |
+ |
+ + |
+ |
+ |
+
+ |
+
+
+ このメーリングリストに投稿された過去のメールは,
+ |
+ |
+ |
+ |
+ メーリングリストの全会員に送るメールは,
+ メーリングリストの現在の会員オプションの変更は, + 以下のフォームをご利用ください. + |
+ |
+
+ |
+ |
+
+ |
+