Barry Warsaw pushed to branch master at mailman / Mailman
Commits:
047d0235 by Mark Sapiro at 2016-10-26T00:04:43+00:00
Change default unsubscription_policy to SubscriptionPolicy.confirm
- - - - -
5db8a288 by Mark Sapiro at 2016-10-25T18:54:42-07:00
Merge /var/git/mailman into mailman_292
- - - - -
6c1e74d9 by Mark Sapiro at 2016-10-25T20:15:31-07:00
Fix doctests to properly set unsubscription_policy = SubscriptionPolicy.open
where needed.
- - - - -
3 changed files:
- src/mailman/commands/docs/membership.rst
- src/mailman/runners/docs/command.rst
- src/mailman/styles/base.py
Changes:
=====================================
src/mailman/commands/docs/membership.rst
=====================================
--- a/src/mailman/commands/docs/membership.rst
+++ b/src/mailman/commands/docs/membership.rst
@@ -223,6 +223,7 @@ address for the list, she is immediately removed.
>>> from mailman.interfaces.mailinglist import SubscriptionPolicy
>>> mlist_2.unsubscription_policy = SubscriptionPolicy.open
+ >>> mlist.unsubscription_policy = SubscriptionPolicy.open
>>> results = Results()
>>> print(leave.process(mlist_2, msg, {}, (), results))
ContinueProcessing.yes
=====================================
src/mailman/runners/docs/command.rst
=====================================
--- a/src/mailman/runners/docs/command.rst
+++ b/src/mailman/runners/docs/command.rst
@@ -167,7 +167,7 @@ Similarly, to leave a mailing list, the user need only
email the ``-leave`` or
... """)
>>> from mailman.interfaces.mailinglist import SubscriptionPolicy
- >>> mlist.unsubscribe_policy = SubscriptionPolicy.open
+ >>> mlist.unsubscription_policy = SubscriptionPolicy.open
>>> filebase = inject_message(
... mlist, msg, switchboard='command', subaddress='leave')
>>> command.run()
=====================================
src/mailman/styles/base.py
=====================================
--- a/src/mailman/styles/base.py
+++ b/src/mailman/styles/base.py
@@ -67,7 +67,7 @@ class BasicOperation:
mlist.default_member_action = Action.defer
mlist.default_nonmember_action = Action.hold
mlist.subscription_policy = SubscriptionPolicy.confirm
- mlist.unsubscription_policy = SubscriptionPolicy.open
+ mlist.unsubscription_policy = SubscriptionPolicy.confirm
# Notify the administrator of pending requests and membership changes.
mlist.admin_immed_notify = True
mlist.admin_notify_mchanges = False
View it on GitLab:
https://gitlab.com/mailman/mailman/compare/314f6002955b9b3f94ec00774aa230f5dd1f9374...6c1e74d93212ee6922ea8500dbecb4cf2eff1114
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org