summaryrefslogtreecommitdiff
path: root/mailman/interfaces/command.py
diff options
context:
space:
mode:
Diffstat (limited to 'mailman/interfaces/command.py')
-rw-r--r--mailman/interfaces/command.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/mailman/interfaces/command.py b/mailman/interfaces/command.py
index 553dcb0e3..5e294fe08 100644
--- a/mailman/interfaces/command.py
+++ b/mailman/interfaces/command.py
@@ -17,10 +17,18 @@
"""Interfaces defining email commands."""
+from munepy import Enum
from zope.interface import Interface, Attribute
+class ContinueProcessing(Enum):
+ """Should `IEmailCommand.process()` continue or not."""
+ no = 0
+ yes = 1
+
+
+
class IEmailResults(Interface):
"""The email command results object."""
@@ -45,6 +53,6 @@ class IEmailCommand(Interface):
:param msgdata: The message metadata.
:param arguments: The command arguments tuple.
:param results: An IEmailResults object for these commands.
- :return: True if further processing should be taken of the email
- commands in this message.
+ :return: A `ContinueProcessing` enum specifying whether to continue
+ processing or not.
"""