Skip to content

Commit 90f738a

Browse files
committed
update
1 parent 5e92f51 commit 90f738a

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

Mailman/Queue/IncomingRunner.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
from Mailman import LockFile
117117
from Mailman.Queue.Runner import Runner
118118
from Mailman.Logging.Syslog import mailman_log
119+
from Mailman.List import MailList
119120

120121

121122
class PipelineError(Exception):
@@ -316,8 +317,16 @@ def _oneloop(self):
316317
# Get the list name from the message data
317318
listname = msgdata.get('listname', mm_cfg.MAILMAN_SITE_LIST)
318319

320+
# Create a MailList object
321+
try:
322+
mlist = MailList(listname, lock=0)
323+
except Errors.MMUnknownListError:
324+
mailman_log('error', 'IncomingRunner._oneloop: Unknown list %s', listname)
325+
self._shunt.enqueue(msg, msgdata)
326+
continue
327+
319328
# Process the message
320-
result = self._dispose(listname, msg, msgdata)
329+
result = self._dispose(mlist, msg, msgdata)
321330

322331
# If the message should be kept in the queue, requeue it
323332
if result:

0 commit comments

Comments
 (0)