summaryrefslogtreecommitdiff
path: root/mailman/queue/command.py
diff options
context:
space:
mode:
authorBarry Warsaw2008-09-24 22:59:05 -0400
committerBarry Warsaw2008-09-24 22:59:05 -0400
commit12e5731cb50716590c86bdd55a1dae442b8d256c (patch)
treee63e9d6ffcf552472de3076c0739d4871400e586 /mailman/queue/command.py
parent9be793725d86c2bbd0bb0791bce4aecd80838e48 (diff)
parentc129b48a91d11fd3fb69666b8109c3a9372b2f8f (diff)
downloadmailman-12e5731cb50716590c86bdd55a1dae442b8d256c.tar.gz
mailman-12e5731cb50716590c86bdd55a1dae442b8d256c.tar.zst
mailman-12e5731cb50716590c86bdd55a1dae442b8d256c.zip
Diffstat (limited to 'mailman/queue/command.py')
-rw-r--r--mailman/queue/command.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/mailman/queue/command.py b/mailman/queue/command.py
index e9009809e..9c547184c 100644
--- a/mailman/queue/command.py
+++ b/mailman/queue/command.py
@@ -44,7 +44,7 @@ from mailman import Utils
from mailman.app.replybot import autorespond_to_sender
from mailman.configuration import config
from mailman.i18n import _
-from mailman.interfaces import IEmailResults
+from mailman.interfaces import ContinueProcessing, IEmailResults
from mailman.queue import Runner
NL = '\n'
@@ -179,7 +179,12 @@ class CommandRunner(Runner):
if command is None:
print >> results, _('No such command: $command_name')
else:
- command.process(mlist, msg, msgdata, arguments, results)
+ status = command.process(
+ mlist, msg, msgdata, arguments, results)
+ assert status in ContinueProcessing, (
+ 'Invalid status: %s' % status)
+ if status == ContinueProcessing.no:
+ break
# All done, send the response.
if len(finder.command_lines) > 0:
print >> results, _('\n- Unprocessed:')