summaryrefslogtreecommitdiff
path: root/src/mailman/commands/docs/remove.rst
diff options
context:
space:
mode:
authorBarry Warsaw2012-03-15 19:06:22 -0700
committerBarry Warsaw2012-03-15 19:06:22 -0700
commit44ec37f890c7d4d35504d8f2e56c01abe8c60940 (patch)
tree1be17a33b6deb243abb7397b5038ede72411614b /src/mailman/commands/docs/remove.rst
parentbcc42e2201c7172848185e5675a7b79e3d28aa0f (diff)
downloadmailman-44ec37f890c7d4d35504d8f2e56c01abe8c60940.tar.gz
mailman-44ec37f890c7d4d35504d8f2e56c01abe8c60940.tar.zst
mailman-44ec37f890c7d4d35504d8f2e56c01abe8c60940.zip
Diffstat (limited to 'src/mailman/commands/docs/remove.rst')
-rw-r--r--src/mailman/commands/docs/remove.rst44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/mailman/commands/docs/remove.rst b/src/mailman/commands/docs/remove.rst
index f0f4e64f6..35dc53c5e 100644
--- a/src/mailman/commands/docs/remove.rst
+++ b/src/mailman/commands/docs/remove.rst
@@ -24,7 +24,6 @@ A system administrator can remove mailing lists by the command line.
>>> command = Remove()
>>> command.process(args)
Removed list: test@example.com
- Not removing archives. Reinvoke with -a to remove them.
>>> print list_manager.get('test@example.com')
None
@@ -40,46 +39,3 @@ You can also remove lists quietly.
>>> print list_manager.get('test@example.com')
None
-
-
-Removing archives
-=================
-
-By default 'mailman remove' does not remove a mailing list's archives.
-::
-
- >>> create_list('test@example.com')
- <mailing list "test@example.com" at ...>
-
- # Fake an mbox file for the mailing list.
- >>> import os
- >>> def make_mbox(fqdn_listname):
- ... mbox_dir = os.path.join(
- ... config.PUBLIC_ARCHIVE_FILE_DIR, fqdn_listname + '.mbox')
- ... os.makedirs(mbox_dir)
- ... mbox_file = os.path.join(mbox_dir, fqdn_listname + '.mbox')
- ... with open(mbox_file, 'w') as fp:
- ... print >> fp, 'A message'
- ... assert os.path.exists(mbox_file)
- ... return mbox_file
-
- >>> mbox_file = make_mbox('test@example.com')
- >>> args.quiet = False
- >>> command.process(args)
- Removed list: test@example.com
- Not removing archives. Reinvoke with -a to remove them.
-
- >>> os.path.exists(mbox_file)
- True
-
-Even if the mailing list has been deleted, you can still delete the archives
-afterward.
-::
-
- >>> args.archives = True
-
- >>> command.process(args)
- No such list: test@example.com; removing residual archives.
-
- >>> os.path.exists(mbox_file)
- False