diff options
| author | Barry Warsaw | 2008-08-12 20:54:04 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2008-08-12 20:54:04 -0400 |
| commit | ae24685f77661f19ee0357e9328737b6a3251596 (patch) | |
| tree | c9129496aaf12ca3ce126099f89967b6ce751a2a /mailman/interfaces/command.py | |
| parent | 67e437883d520bf7ea78ae55235892aa946ef0b4 (diff) | |
| download | mailman-ae24685f77661f19ee0357e9328737b6a3251596.tar.gz mailman-ae24685f77661f19ee0357e9328737b6a3251596.tar.zst mailman-ae24685f77661f19ee0357e9328737b6a3251596.zip | |
Diffstat (limited to 'mailman/interfaces/command.py')
| -rw-r--r-- | mailman/interfaces/command.py | 12 |
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. """ |
