File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 116116from Mailman import LockFile
117117from Mailman .Queue .Runner import Runner
118118from Mailman .Logging .Syslog import mailman_log
119+ from Mailman .List import MailList
119120
120121
121122class 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 :
You can’t perform that action at this time.
0 commit comments