summaryrefslogtreecommitdiff
path: root/src/mailman/commands/eml_confirm.py
diff options
context:
space:
mode:
authorBarry Warsaw2009-12-06 12:17:02 -0500
committerBarry Warsaw2009-12-06 12:17:02 -0500
commitf7cbf566f32ac9819a6fc68652aee056cb7682a1 (patch)
treefc6df72b0f6bd43debc20f0db11389a8ef14bc37 /src/mailman/commands/eml_confirm.py
parentaf33fabf7e10cb42ab6802b8a222670b2b7037f0 (diff)
downloadmailman-f7cbf566f32ac9819a6fc68652aee056cb7682a1.tar.gz
mailman-f7cbf566f32ac9819a6fc68652aee056cb7682a1.tar.zst
mailman-f7cbf566f32ac9819a6fc68652aee056cb7682a1.zip
Diffstat (limited to 'src/mailman/commands/eml_confirm.py')
-rw-r--r--src/mailman/commands/eml_confirm.py47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/mailman/commands/eml_confirm.py b/src/mailman/commands/eml_confirm.py
new file mode 100644
index 000000000..0c957b295
--- /dev/null
+++ b/src/mailman/commands/eml_confirm.py
@@ -0,0 +1,47 @@
+# Copyright (C) 2009 by the Free Software Foundation, Inc.
+#
+# This file is part of GNU Mailman.
+#
+# GNU Mailman 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 3 of the License, or (at your option)
+# any later version.
+#
+# GNU Mailman 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
+# GNU Mailman. If not, see <http://www.gnu.org/licenses/>.
+
+"""Module stuff."""
+
+from __future__ import absolute_import, unicode_literals
+
+__metaclass__ = type
+__all__ = [
+ 'Confirm',
+ ]
+
+
+from zope.interface import implements
+
+from mailman.core.i18n import _
+from mailman.interfaces.command import ContinueProcessing, IEmailCommand
+
+
+
+class Confirm:
+ """The email 'confirm' command."""
+
+ implements(IEmailCommand)
+
+ name = 'confirm'
+ argument_description = ''
+ description = ''
+
+ def process(self, mlist, msg, msgdata, arguments, results):
+ """See `IEmailCommand`."""
+ print >> results, _('Confirmed')
+ return ContinueProcessing.yes