summaryrefslogtreecommitdiff
path: root/src/mailman/docs
diff options
context:
space:
mode:
authorBarry Warsaw2009-09-19 16:51:15 -0400
committerBarry Warsaw2009-09-19 16:51:15 -0400
commita5456442682ff20c4b0d3a9d166d5fa9bf06a7de (patch)
tree7ad2aec53b1acc53d879e063ef7339c2302284c7 /src/mailman/docs
parentca84b1a8852a86464184586441c3d0fd66c879b1 (diff)
downloadmailman-a5456442682ff20c4b0d3a9d166d5fa9bf06a7de.tar.gz
mailman-a5456442682ff20c4b0d3a9d166d5fa9bf06a7de.tar.zst
mailman-a5456442682ff20c4b0d3a9d166d5fa9bf06a7de.zip
Convert bin/inject to bin/mailman inject
Expose the database store on .store instead of ._store A few other cleanups.
Diffstat (limited to 'src/mailman/docs')
-rw-r--r--src/mailman/docs/listmanager.txt15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/mailman/docs/listmanager.txt b/src/mailman/docs/listmanager.txt
index 63530ccda..e8af0d71d 100644
--- a/src/mailman/docs/listmanager.txt
+++ b/src/mailman/docs/listmanager.txt
@@ -36,11 +36,19 @@ list to the system.
If you try to create a mailing list with the same name as an existing list,
you will get an exception.
- >>> mlist_dup = list_manager.create('_xtest@example.com')
+ >>> list_manager.create('_xtest@example.com')
Traceback (most recent call last):
...
ListAlreadyExistsError: _xtest@example.com
+It is an error to create a mailing list that isn't a fully qualified list name
+(i.e. posting address).
+
+ >>> list_manager.create('foo')
+ Traceback (most recent call last):
+ ...
+ InvalidEmailAddress: foo
+
Deleting a mailing list
=======================
@@ -73,6 +81,11 @@ If you try to get a list that doesn't existing yet, you get None.
>>> print list_manager.get('_xtest_2@example.com')
None
+You also get None if the list name is invalid.
+
+ >>> print list_manager.get('foo')
+ None
+
Iterating over all mailing lists
================================