From 10100c98e5ff73b44f22119887bce15e9e9c0376 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Thu, 2 May 2002 04:07:20 +0000 Subject: __onefile(): If there's no `listname' key in the message metadata, use the site list to send the message. If there's no site list, you're in heap big trouble. --- Mailman/Queue/Runner.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'Mailman/Queue/Runner.py') diff --git a/Mailman/Queue/Runner.py b/Mailman/Queue/Runner.py index 540f6c0a4..ffab34398 100644 --- a/Mailman/Queue/Runner.py +++ b/Mailman/Queue/Runner.py @@ -125,15 +125,14 @@ class Runner: # Find out which mailing list this message is destined for. listname = msgdata.get('listname') if not listname: - mlist = None - else: - mlist = self._open_list(listname) - if not mlist: - syslog('error', - 'Dequeuing message destined for missing list: %s', - listname) - self._shunt.enqueue(msg, msgdata) - return + listname = mm_cfg.MAILMAN_SITE_LIST + mlist = self._open_list(listname) + if not mlist: + syslog('error', + 'Dequeuing message destined for missing list: %s', + listname) + self._shunt.enqueue(msg, msgdata) + return # Now process this message, keeping track of any subprocesses that may # have been spawned. We'll reap those later. # -- cgit v1.2.3-70-g09d2