From 67e437883d520bf7ea78ae55235892aa946ef0b4 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Sat, 26 Apr 2008 01:57:53 -0400 Subject: Handle commands in the body of a plain text email message. --- mailman/queue/command.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mailman/queue/command.py') diff --git a/mailman/queue/command.py b/mailman/queue/command.py index 319cab87c..e9009809e 100644 --- a/mailman/queue/command.py +++ b/mailman/queue/command.py @@ -111,7 +111,10 @@ class CommandFinder: line = self.command_lines.pop(0) self.processed_lines.append(line) parts = line.strip().split() - yield parts[0], tuple(parts[1:]) + if len(parts) == 0: + continue + command = parts.pop(0) + yield command, tuple(parts) -- cgit v1.2.3-70-g09d2