summaryrefslogtreecommitdiff
path: root/src/mailman/commands/docs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/commands/docs')
-rw-r--r--src/mailman/commands/docs/membership.rst7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mailman/commands/docs/membership.rst b/src/mailman/commands/docs/membership.rst
index 49e80511d..230b4fb83 100644
--- a/src/mailman/commands/docs/membership.rst
+++ b/src/mailman/commands/docs/membership.rst
@@ -217,9 +217,12 @@ list. ``unsubscribe`` is an alias for ``leave``.
You may be asked to confirm your request.
Anne is a member of the ``baker@example.com`` mailing list, when she decides
-to leave it. She sends a message to the ``-leave`` address for the list and
-is sent a confirmation message for her request.
+to leave it. Because the mailing list allows for *open* unsubscriptions
+(i.e. no confirmation is needed), when she sends a message to the ``-leave``
+address for the list, she is immediately removed.
+ >>> from mailman.interfaces.mailinglist import SubscriptionPolicy
+ >>> mlist_2.unsubscription_policy = SubscriptionPolicy.open
>>> results = Results()
>>> print(leave.process(mlist_2, msg, {}, (), results))
ContinueProcessing.yes