diff options
| author | Barry Warsaw | 2008-09-24 22:59:05 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2008-09-24 22:59:05 -0400 |
| commit | 12e5731cb50716590c86bdd55a1dae442b8d256c (patch) | |
| tree | e63e9d6ffcf552472de3076c0739d4871400e586 /mailman/interfaces/command.py | |
| parent | 9be793725d86c2bbd0bb0791bce4aecd80838e48 (diff) | |
| parent | c129b48a91d11fd3fb69666b8109c3a9372b2f8f (diff) | |
| download | mailman-12e5731cb50716590c86bdd55a1dae442b8d256c.tar.gz mailman-12e5731cb50716590c86bdd55a1dae442b8d256c.tar.zst mailman-12e5731cb50716590c86bdd55a1dae442b8d256c.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. """ |
