def __init__(self, slice=None, numslices=1): Runner.__init__(self, slice, numslices) BounceMixin.__init__(self) # We look this function up only at startup time modname = 'Mailman.Handlers.' + mm_cfg.DELIVERY_MODULE mod = __import__(modname) self._func = getattr(sys.modules[modname], 'process') # This prevents smtp server connection problems from filling up the # error log. It gets reset if the message was successfully sent, and # set if there was a socket.error. self.__logged = False self.__retryq = Switchboard(mm_cfg.RETRYQUEUE_DIR)
def _cleanup(self): BounceMixin._cleanup(self) Runner._cleanup(self)
def __init__(self, slice=None, numslices=1): Runner.__init__(self, slice, numslices) BounceMixin.__init__(self)
def __init__(self, slice=None, numslices=1): Runner.__init__(self, slice, numslices) self.__outq = Switchboard(mm_cfg.OUTQUEUE_DIR)
def _log(self, exc): """Log the exception in a log file and as an OOPS.""" Runner._log(self, exc) error_utility = ErrorReportingUtility() error_utility.configure(section_name='mailman') error_utility.raising(sys.exc_info())
def _log(self, exc): """Log the exception in a log file and as an OOPS.""" Runner._log(self, exc) error_utility = ErrorReportingUtility() error_utility.configure(section_name="mailman") error_utility.raising(sys.exc_info())