diff options
| -rw-r--r-- | src/mailman/config/config.py | 4 | ||||
| -rw-r--r-- | src/mailman/core/runner.py | 11 |
2 files changed, 9 insertions, 6 deletions
diff --git a/src/mailman/config/config.py b/src/mailman/config/config.py index acddd1089..e7d8b6b17 100644 --- a/src/mailman/config/config.py +++ b/src/mailman/config/config.py @@ -110,7 +110,9 @@ class Configuration: # configuration filename was given by the user, push it. config_file = resource_filename('mailman.config', 'mailman.cfg') self._config = schema.load(config_file) - if filename is not None: + if filename is None: + self._post_process() + else: self.filename = filename with open(filename, 'r', encoding='utf-8') as user_config: self.push(filename, user_config.read()) diff --git a/src/mailman/core/runner.py b/src/mailman/core/runner.py index 1fabe0a8f..5ffc3f57d 100644 --- a/src/mailman/core/runner.py +++ b/src/mailman/core/runner.py @@ -221,18 +221,19 @@ class Runner: # compatibility. list_manager = getUtility(IListManager) list_id = msgdata.get('listid', missing) + fqdn_listname = None if list_id is missing: - listname = msgdata.get('listname', missing) + fqdn_listname = msgdata.get('listname', missing) # XXX Deprecate. - if listname is not missing: - mlist = list_manager.get(listname) + if fqdn_listname is not missing: + mlist = list_manager.get(fqdn_listname) else: mlist = list_manager.get_by_list_id(list_id) if mlist is None: + identifier = (list_id if list_id is not None else fqdn_listname) elog.error( '%s runner "%s" shunting message for missing list: %s', - msg['message-id'], self.name, - ('n/a' if listname is missing else listname)) + msg['message-id'], self.name, identifier) config.switchboards['shunt'].enqueue(msg, msgdata) return # Now process this message. We also want to set up the language |
