summaryrefslogtreecommitdiff
path: root/src/mailman/commands/docs/create.rst
diff options
context:
space:
mode:
authorGurkirpal2016-03-15 19:03:21 +0530
committerBarry Warsaw2016-03-22 09:39:03 -0400
commit75941917d8c57b41e2583079f22863326ebf9920 (patch)
tree15a80a4c1e0aebe5cc5342cc757b9156063da46b /src/mailman/commands/docs/create.rst
parent472eb9765f4163aad785f483584ff607f01fdeeb (diff)
downloadmailman-75941917d8c57b41e2583079f22863326ebf9920.tar.gz
mailman-75941917d8c57b41e2583079f22863326ebf9920.tar.zst
mailman-75941917d8c57b41e2583079f22863326ebf9920.zip
Diffstat (limited to 'src/mailman/commands/docs/create.rst')
-rw-r--r--src/mailman/commands/docs/create.rst11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/mailman/commands/docs/create.rst b/src/mailman/commands/docs/create.rst
index 1a5d2a3ab..aee6b1f05 100644
--- a/src/mailman/commands/docs/create.rst
+++ b/src/mailman/commands/docs/create.rst
@@ -33,6 +33,9 @@ domain. Both the mailing list and domain will be created.
>>> command.process(FakeArgs)
Created mailing list: test@example.xx
+This is the default behaviour. Even if you do not specify any option,
+Mailman will itself make the domain if it doesn't exist.
+
Now both the domain and the mailing list exist in the database.
::
@@ -46,8 +49,8 @@ Now both the domain and the mailing list exist in the database.
>>> getUtility(IDomainManager).get('example.xx')
<Domain example.xx, base_url: http://example.xx>
-You can also create mailing lists in existing domains without the
-auto-creation flag.
+You can also create mailing lists in existing domains by using the
+``-D`` or ``--no-domain`` flag.
::
>>> FakeArgs.domain = False
@@ -58,6 +61,10 @@ auto-creation flag.
>>> list_manager.get('test1@example.com')
<mailing list "test1@example.com" at ...>
+Although the ``--no-domain`` flag is not required when domain already
+exists it can be used to error out when domain doesn't exist. In such
+case, Mailman will give an error message.
+
The command can also operate quietly.
::