summaryrefslogtreecommitdiff
path: root/Mailman/Commands/cmd_remove.py
diff options
context:
space:
mode:
authorbwarsaw2002-05-02 02:54:46 +0000
committerbwarsaw2002-05-02 02:54:46 +0000
commitea909c059b1c1671adbb995d292649482277ad95 (patch)
tree183863b01c5835627d7edbf0aac6e6c2fcc1d067 /Mailman/Commands/cmd_remove.py
parent8550439af7c64c4c2a857318388be5a202dd3292 (diff)
downloadmailman-ea909c059b1c1671adbb995d292649482277ad95.tar.gz
mailman-ea909c059b1c1671adbb995d292649482277ad95.tar.zst
mailman-ea909c059b1c1671adbb995d292649482277ad95.zip
New architecture for email commands. Instead of the monolithic (and
unmaintainable) MailCommandHandler.py file, we've now got a framework where each command is implemented in a separate file. This means it's both more extensible and more flexible: - you can easily add new commands for things I haven't thought of <wink>, and the `help' command will automatically adjust - you can disable commands entirely by removing the appropriate file - you can disable, change, or add commands on a per-list (or even per-message or per-sender) basis CommandRunner.py is the module that calls into this framework. Each command is implemented as a cmd_<command>.py file. The `set' command is the most complicated. The help text is currently implemented as module docstrings (for most commands), so the i18n catalogs must be updated. Also the help.txt files will be updated.
Diffstat (limited to 'Mailman/Commands/cmd_remove.py')
-rw-r--r--Mailman/Commands/cmd_remove.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/Mailman/Commands/cmd_remove.py b/Mailman/Commands/cmd_remove.py
new file mode 100644
index 000000000..55be1f3ed
--- /dev/null
+++ b/Mailman/Commands/cmd_remove.py
@@ -0,0 +1,20 @@
+# Copyright (C) 2002 by the Free Software Foundation, Inc.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+"""The `remove' command is synonymous with `unsubscribe'.
+"""
+
+from Mailman.Commands.cmd_unsubscribe import process