summaryrefslogtreecommitdiff
path: root/src/mailman/model/docs
diff options
context:
space:
mode:
authorBarry Warsaw2011-04-22 19:58:07 -0400
committerBarry Warsaw2011-04-22 19:58:07 -0400
commit989267f6edbf55a1109d24c2b5e20051ea6a24a8 (patch)
tree8b290e5760cbb28d43a24a3e1460bdf7043c78a4 /src/mailman/model/docs
parentea77dd42093f453c4f3f3aad22d33952b3e3ec5a (diff)
downloadmailman-989267f6edbf55a1109d24c2b5e20051ea6a24a8.tar.gz
mailman-989267f6edbf55a1109d24c2b5e20051ea6a24a8.tar.zst
mailman-989267f6edbf55a1109d24c2b5e20051ea6a24a8.zip
Users subscribed to a mailing list via their preferred address show up
correctly in the REST API's list of members. This even correctly tracks changes in their preferred address.
Diffstat (limited to 'src/mailman/model/docs')
-rw-r--r--src/mailman/model/docs/mailinglist.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mailman/model/docs/mailinglist.txt b/src/mailman/model/docs/mailinglist.txt
index ec9e37ee0..4d3250e76 100644
--- a/src/mailman/model/docs/mailinglist.txt
+++ b/src/mailman/model/docs/mailinglist.txt
@@ -152,3 +152,14 @@ this address is their preferred address.
>>> mlist.subscribe(user.preferred_address)
<Member: dave.person@example.com
on aardvark@example.com as MemberRole.member>
+
+A user cannot subscribe to a mailing list without a preferred address.
+
+ >>> user = user_manager.create_user('eperson@example.com', 'Elly Person')
+ >>> address = list(user.addresses)[0]
+ >>> address.verified_on = now()
+ >>> mlist.subscribe(user)
+ Traceback (most recent call last):
+ ...
+ MissingPreferredAddressError: User must have a preferred address:
+ <User "Elly Person" (2) at ...>